Skip to content

Commit 8ec31f6

Browse files
jbrockmendelSeeminSyed
authored andcommitted
CLN: remove unnecessary to_dense (pandas-dev#32533)
1 parent 0ddd433 commit 8ec31f6

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)