You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We should properly deprecate to_dense and to_sparse on Series and DataFrame.
Series.to_dense already is disfunctional (#25680), and DataFrame.to_dense can be replaced with DataFrame.sparse.to_dense().
And the to_sparse methods return a SparseSeries / SparseDataFrame, which are deprecated (and in that sense already show some deprecation warning, but this should be done properly with their own deprecation warning and doc update).
Those could in principle be replaced with a new DataFrame/Series.sparse.to_sparse method? (although you can already do astype('Sparse'))
The text was updated successfully, but these errors were encountered:
We should properly deprecate
to_dense
andto_sparse
on Series and DataFrame.Series.to_dense
already is disfunctional (#25680), andDataFrame.to_dense
can be replaced withDataFrame.sparse.to_dense()
.And the
to_sparse
methods return a SparseSeries / SparseDataFrame, which are deprecated (and in that sense already show some deprecation warning, but this should be done properly with their own deprecation warning and doc update).Those could in principle be replaced with a new
DataFrame/Series.sparse.to_sparse
method? (although you can already doastype('Sparse')
)The text was updated successfully, but these errors were encountered: