Skip to content

Commit

Permalink
docs: add the pages for at and iat indexers (#456)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyxuu authored Mar 19, 2024
1 parent 5dd9e6e commit 340f0b5
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 4 deletions.
28 changes: 28 additions & 0 deletions docs/reference/bigframes.pandas/indexers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
Indexers
=========

AtDataFrameIndexer
--------------------
.. autoclass:: bigframes.core.indexers.AtDataFrameIndexer
:members:
:inherited-members:
:undoc-members:

AtSeriesIndexer
--------------------
.. autoclass:: bigframes.core.indexers.AtSeriesIndexer
:members:
:inherited-members:
:undoc-members:

IatDataFrameIndexer
--------------------
.. autoclass:: bigframes.core.indexers.IatDataFrameIndexer
:members:
:inherited-members:
:undoc-members:

IatSeriesIndexer
--------------------
.. autoclass:: bigframes.core.indexers.IatSeriesIndexer
:members:
:inherited-members:
:undoc-members:

ILocDataFrameIndexer
--------------------
.. autoclass:: bigframes.core.indexers.ILocDataFrameIndexer
Expand Down
8 changes: 8 additions & 0 deletions docs/templates/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@
uid: bigframes.core.groupby.SeriesGroupBy
name: Groupby
- items:
- name: AtDataFrameIndexer
uid: bigframes.core.indexers.AtDataFrameIndexer
- name: AtSeriesIndexer
uid: bigframes.core.indexers.AtSeriesIndexer
- name: IatDataFrameIndexer
uid: bigframes.core.indexers.IatDataFrameIndexer
- name: IatSeriesIndexer
uid: bigframes.core.indexers.IatSeriesIndexer
- name: ILocDataFrameIndexer
uid: bigframes.core.indexers.ILocDataFrameIndexer
- name: IlocSeriesIndexer
Expand Down
12 changes: 10 additions & 2 deletions third_party/bigframes_vendored/pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5129,12 +5129,20 @@ def loc(self):

@property
def iat(self):
"""Access a single value for a row/column pair by integer position."""
"""Access a single value for a row/column pair by integer position.
Returns:
bigframes.core.indexers.IatDataFrameIndexer: Indexers object.
"""
raise NotImplementedError(constants.ABSTRACT_METHOD_ERROR_MESSAGE)

@property
def at(self):
"""Access a single value for a row/column label pair."""
"""Access a single value for a row/column label pair.
Returns:
bigframes.core.indexers.AtDataFrameIndexer: Indexers object.
"""
raise NotImplementedError(constants.ABSTRACT_METHOD_ERROR_MESSAGE)

def dot(self, other):
Expand Down
12 changes: 10 additions & 2 deletions third_party/bigframes_vendored/pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -3278,12 +3278,20 @@ def loc(self):

@property
def iat(self):
"""Access a single value for a row/column pair by integer position."""
"""Access a single value for a row/column pair by integer position.
Returns:
bigframes.core.indexers.IatSeriesIndexer: Indexers object.
"""
raise NotImplementedError(constants.ABSTRACT_METHOD_ERROR_MESSAGE)

@property
def at(self):
"""Access a single value for a row/column label pair."""
"""Access a single value for a row/column label pair.
Returns:
bigframes.core.indexers.AtSeriesIndexer: Indexers object.
"""
raise NotImplementedError(constants.ABSTRACT_METHOD_ERROR_MESSAGE)

@property
Expand Down

0 comments on commit 340f0b5

Please sign in to comment.