Skip to content

Commit b40c726

Browse files
replace NotImplementedError with AttributeError
Fixes Python inspection of members - bug reported in pandas-dev#31474
1 parent fc813e7 commit b40c726

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ def _constructor(self) -> Type["DataFrame"]:
411411

412412
@property
413413
def _constructor_expanddim(self):
414-
raise NotImplementedError("Not supported for DataFrames!")
414+
raise AttributeError("Property constructor_expanddim is not supported for DataFrames!")
415415

416416
# ----------------------------------------------------------------------
417417
# Constructors

0 commit comments

Comments
 (0)