Skip to content

Commit 113c255

Browse files
authored
CLN: remove unnecessary to_dense (#32533)
1 parent db9a50c commit 113c255

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/io/formats/format.py

-2
Original file line numberDiff line numberDiff line change
@@ -1352,8 +1352,6 @@ def format_values_with(float_format):
13521352
values = self.values
13531353
is_complex = is_complex_dtype(values)
13541354
mask = isna(values)
1355-
if hasattr(values, "to_dense"): # sparse numpy ndarray
1356-
values = values.to_dense()
13571355
values = np.array(values, dtype="object")
13581356
values[mask] = na_rep
13591357
imask = (~mask).ravel()

0 commit comments

Comments
 (0)