diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index 7383e1d2..33875095 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -278,6 +278,17 @@ def get_column_names(self) -> list[str]: """ ... + @property + def schema(self) -> dict[str, Any]: + """ + Get dataframe's schema. + + Returns + ------- + dict[str, Any] + Mapping from column name to data type. + """ + def sort( self, keys: str | list[str] | None = None,