-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: to_dense is broken #14647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
yes I agree these should all be consistent as |
It's nice to once organize related definitions, including |
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 18, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 18, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 20, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 20, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 22, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 22, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Nov 23, 2016
Patches the following for to_dense: 1) Fix SparseArray.to_dense documentation to refer to SparseArray and not SparseSeries. 2) Deprecate the fill parameter in SparseArray.to_dense, as that parameter was not being respected. 3) Deprecate the sparse_only parameter in SparseSeries.to_dense, as that parameter is inconsistent with the to_dense API we want, which is no parameters. Closes pandas-devgh-14647.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of 1d6dbb, the behaviour, documentation, and signatures for
to_dense
are widely inconsistent:SparseArray: documentation is incorrect (we are not converting a
SparseSeries
), and thefill
parameter is not even respected if you trace the code. Not sure why it was ever there in the first place.SparseSeries: What is the purpose of
sparse_only
? Not only is it not documented, but it also is inconsistent withSparseArray
behaviour.SparseDataFrame: Perhaps the most intuitive of them all. Documentation is correct, and it has no unnecessary parameters like the other two do.
I propose that we change the
to_dense
behaviour to match that ofSparseDataFrame
. Take no arguments and just convert to a dense object with no questions asked.The text was updated successfully, but these errors were encountered: