Skip to content

Commit c5d49c4

Browse files
committed
Merge pull request #1 from gambogi/DataFrame-docstring-axes-shape
DOC: Add docstrings to DataFrame properties
2 parents 5bf4ff2 + 3a3da92 commit c5d49c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/frame.py

+7
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,17 @@ def _get_axes(N, K, index=index, columns=columns):
413413

414414
@property
415415
def axes(self):
416+
"""
417+
Return a list with the row axis labels and column axis labels as the
418+
only members. They are returned in that order.
419+
"""
416420
return [self.index, self.columns]
417421

418422
@property
419423
def shape(self):
424+
"""
425+
Return a tuple representing the dimensionality of the DataFrame.
426+
"""
420427
return (len(self.index), len(self.columns))
421428

422429
def _repr_fits_vertical_(self):

0 commit comments

Comments
 (0)