We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc813e7 commit b40c726Copy full SHA for b40c726
pandas/core/frame.py
@@ -411,7 +411,7 @@ def _constructor(self) -> Type["DataFrame"]:
411
412
@property
413
def _constructor_expanddim(self):
414
- raise NotImplementedError("Not supported for DataFrames!")
+ raise AttributeError("Property constructor_expanddim is not supported for DataFrames!")
415
416
# ----------------------------------------------------------------------
417
# Constructors
0 commit comments