Skip to content
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

CLN: Removed SparsePanel #13778

Closed
wants to merge 1 commit into from

Conversation

gfyoung
Copy link
Member

@gfyoung gfyoung commented Jul 24, 2016

Title is self-explanatory. Picks up where #11157 left off.

@@ -330,6 +330,7 @@ API changes
~~~~~~~~~~~


- ``Panel.to_sparse`` will raise a ``NotImplementedError`` exception when called (:issue:``)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self: add PR number once Travis passes

@jreback
Copy link
Contributor

jreback commented Jul 24, 2016

this is in slight conflict with #13776 as I needed to add a line to catch an errant warning about SparsePanel (which you should then remove). But can sort that later I guess.


y = sdf
x = SparsePanel({'x1': sdf + new_data_like(sdf) / 10,
'x2': sdf + new_data_like(sdf) / 10})
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The benchmark centres around this SparsePanel, which if removed, renders this benchmark essentially moot.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that's fine (we are going to remove those benchs shortly anyway, after checking the content, there is an issue for it. And this one doesn't contain any content that should be moved, so fine!)

@jreback jreback added the Deprecate Functionality to remove in pandas label Jul 24, 2016
``SparseArray`` can be converted back to a regular ndarray by calling
``to_dense``:
Like the indexed objects (SparseSeries, SparseDataFrame), a ``SparseArray``
can be converted back to a regular ndarray by calling ``to_dense``:
Copy link
Contributor

@jreback jreback Jul 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a warning note somewhere that SparsePanel was deprecated in 0.19.0

Copy link
Member Author

@gfyoung gfyoung Jul 24, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean "removed in 0.19.0" ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

@gfyoung
Copy link
Member Author

gfyoung commented Jul 24, 2016

@jreback : what error catching are you referring to in your PR?

@codecov-io
Copy link

codecov-io commented Jul 25, 2016

Current coverage is 85.23% (diff: 75.00%)

Merging #13778 into master will decrease coverage by 0.10%

@@             master     #13778   diff @@
==========================================
  Files           141        140     -1   
  Lines         50711      50415   -296   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
- Hits          43275      42969   -306   
- Misses         7436       7446    +10   
  Partials          0          0          

Powered by Codecov. Last update 3fdcea6...f3fa93b

example. All of the standard pandas data structures have a ``to_sparse``
method:
We have implemented "sparse" versions of Series and DataFrame (there used to be
one for Panel but was removed in 0.19.0). These are not sparse in the typical
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put it in a separate note about the removal of the SparsePanel.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a parenthetical above your comment about the removal. How about a separate paragraph underneath this one instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put it in a warning or note, just trying to draw attention. It should be the first item in that section.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Done.

@jreback jreback added this to the 0.19.0 milestone Jul 25, 2016
@jreback
Copy link
Contributor

jreback commented Jul 25, 2016

lgtm @gfyoung minor doc changes. ping when green.

@jreback
Copy link
Contributor

jreback commented Jul 25, 2016

@gfyoung I think I took out the reference in my other PR (to SparsePanel); I'll rebase after this.

@jreback
Copy link
Contributor

jreback commented Jul 26, 2016

thanks @gfyoung

@gfyoung gfyoung deleted the remove-sparse-panel branch July 26, 2016 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants