Skip to content

Commit f7fba0e

Browse files
committed
wip
1 parent b25ae18 commit f7fba0e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

dataframe_api_compat/pandas_standard/pandas_standard.py

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

618+
@property
619+
def schema(self) -> dict[str, Any]:
620+
return {
621+
column_name: dataframe_api_compat.pandas_standard.DTYPE_MAP[dtype.name]
622+
for column_name, dtype in self.dataframe.dtypes.items()
623+
}
624+
618625
def sorted_indices(
619626
self,
620627
keys: Sequence[str] | None = None,

0 commit comments

Comments
 (0)