Skip to content

Commit ab230eb

Browse files
fix axes method
1 parent 12e8cd7 commit ab230eb

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

bigframes/dataframe.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,10 @@ def columns(self, labels: pandas.Index):
346346
def shape(self) -> Tuple[int, int]:
347347
return self._block.shape
348348

349+
@property
350+
def axes(self) -> list:
351+
return [self.index, self.columns]
352+
349353
@property
350354
def size(self) -> int:
351355
rows, cols = self.shape

third_party/bigframes_vendored/pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def axes(self) -> list:
6767
>>> df.axes[1:]
6868
[Index(['col1', 'col2'], dtype='object')]
6969
"""
70-
return [self.index, self.columns]
70+
raise NotImplementedError(constants.ABSTRACT_METHOD_ERROR_MESSAGE)
7171

7272
@property
7373
def values(self) -> np.ndarray:

0 commit comments

Comments
 (0)