Skip to content

Commit 8c472b9

Browse files
KevsterAmpmroeschke
andcommitted
change self._mgr.dtype to self.dtype
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 9e24d6f commit 8c472b9

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
@@ -2514,7 +2514,7 @@ def round(self, decimals: int = 0, *args, **kwargs) -> Series:
25142514
dtype: float64
25152515
"""
25162516
nv.validate_round(args, kwargs)
2517-
if self._mgr.dtype == "object":
2517+
if self.dtype == "object":
25182518
raise TypeError("Expected numeric dtype, got object instead.")
25192519
new_mgr = self._mgr.round(decimals=decimals)
25202520
return self._constructor_from_mgr(new_mgr, axes=new_mgr.axes).__finalize__(

0 commit comments

Comments
 (0)