Skip to content

Commit 0ce0783

Browse files
authored
REF: remove GeoDataFrame shim in _constructor_from_mgr (#65175)
1 parent 4d6f97f commit 0ce0783

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

pandas/core/frame.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -425,11 +425,6 @@ def _constructor_from_mgr(self, mgr, axes) -> DataFrame:
425425
# this check is slightly faster, benefiting the most-common case.
426426
return df
427427

428-
elif type(self).__name__ == "GeoDataFrame":
429-
# Shim until geopandas can override their _constructor_from_mgr
430-
# bc they have different behavior for Managers than for DataFrames
431-
return self._constructor(mgr)
432-
433428
# We assume that the subclass __init__ knows how to handle a
434429
# pd.DataFrame object.
435430
return self._constructor(df)

0 commit comments

Comments
 (0)