Skip to content

Commit de2a1dd

Browse files
committed
wip
1 parent f7fba0e commit de2a1dd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dataframe_api_compat/polars_standard/polars_standard.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,13 @@ def get_column_names(self) -> list[str]: # pragma: no cover
949949
def column_names(self) -> list[str]:
950950
return self.dataframe.columns
951951

952+
@property
953+
def schema(self) -> dict[str, Any]:
954+
return {
955+
column_name: dataframe_api_compat.polars_standard.DTYPE_MAP[dtype]
956+
for column_name, dtype in self.dataframe.schema.items()
957+
}
958+
952959
def __eq__( # type: ignore[override]
953960
self,
954961
other: Any,

0 commit comments

Comments
 (0)