File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ def make_block_same_class(
262262
263263 @final
264264 def __repr__ (self ) -> str :
265- # don't want to out all of the items here
265+ # don't want to print out all of the items here
266266 name = type (self ).__name__
267267 if self .ndim == 1 :
268268 result = f"{ name } : { len (self )} dtype: { self .dtype } "
@@ -1514,12 +1514,13 @@ def round(self, decimals: int) -> Self:
15141514 """
15151515 if self .dtype == _dtype_obj :
15161516 round_func = functools .partial (round , ndigits = decimals )
1517- mapper = functools .partial (algos .map_array , mapper = round_func )
15181517 try :
15191518 if self .values .ndim == 1 :
15201519 values = algos .map_array (self .values , round_func )
15211520 else :
1522- values = np .apply_along_axis (mapper , 0 , self .values )
1521+ values = algos .map_array (self .values .ravel (), round_func ).reshape (
1522+ self .values .shape
1523+ )
15231524 except TypeError as err :
15241525 raise TypeError ("Expected numeric entries for dtype object." ) from err
15251526
You can’t perform that action at this time.
0 commit comments