Skip to content

Commit 024d647

Browse files
change self._mgr.dtype to self.dtype
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 45bf013 commit 024d647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/series.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2814,7 +2814,7 @@ def round(self, decimals: int = 0, *args, **kwargs) -> Series:
28142814
dtype: float64
28152815
"""
28162816
nv.validate_round(args, kwargs)
2817-
if self._mgr.dtype == "object":
2817+
if self.dtype == "object":
28182818
raise TypeError("Expected numeric dtype, got object instead.")
28192819
new_mgr = self._mgr.round(decimals=decimals, using_cow=using_copy_on_write())
28202820
return self._constructor_from_mgr(new_mgr, axes=new_mgr.axes).__finalize__(

0 commit comments

Comments
 (0)