Skip to content

Commit cdbb334

Browse files
authored
add shape property (#130)
Co-authored-by: MarcoGorelli <>
1 parent d10a096 commit cdbb334

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/API_specification/dataframe_api/dataframe_object.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ def dataframe(self) -> object:
1919
If a library only implements the Standard, then this can return `self`.
2020
"""
2121
...
22+
23+
def shape(self) -> tuple[int, int]:
24+
"""
25+
Return number of rows and number of columns.
26+
"""
2227

2328
def groupby(self, keys: Sequence[str], /) -> GroupBy:
2429
"""

0 commit comments

Comments
 (0)