Skip to content

Commit 264fdc2

Browse files
authored
add dataframe.schema (#248)
1 parent 9cbe15a commit 264fdc2

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

spec/API_specification/dataframe_api/dataframe_object.py

+11
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,17 @@ def get_column_names(self) -> list[str]:
278278
"""
279279
...
280280

281+
@property
282+
def schema(self) -> dict[str, Any]:
283+
"""
284+
Get dataframe's schema.
285+
286+
Returns
287+
-------
288+
dict[str, Any]
289+
Mapping from column name to data type.
290+
"""
291+
281292
def sort(
282293
self,
283294
keys: str | list[str] | None = None,

0 commit comments

Comments
 (0)