diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index c133d79a..5597c849 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -19,6 +19,11 @@ def dataframe(self) -> object: If a library only implements the Standard, then this can return `self`. """ ... + + def shape(self) -> tuple[int, int]: + """ + Return number of rows and number of columns. + """ def groupby(self, keys: Sequence[str], /) -> GroupBy: """