We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ed649d commit 5a862b5Copy full SHA for 5a862b5
pandas/core/generic.py
@@ -6327,7 +6327,7 @@ def astype(
6327
return cast(Self, result)
6328
6329
@final
6330
- def copy(self, deep: bool | None = True) -> Self:
+ def copy(self, deep: bool = True) -> Self:
6331
"""
6332
Make a copy of this object's indices and data.
6333
@@ -6460,7 +6460,7 @@ def copy(self, deep: bool | None = True) -> Self:
6460
1 [3, 4]
6461
dtype: object
6462
6463
- data = self._mgr.copy(deep=deep) # type: ignore[arg-type]
+ data = self._mgr.copy(deep=deep)
6464
return self._constructor_from_mgr(data, axes=data.axes).__finalize__(
6465
self, method="copy"
6466
)
0 commit comments