Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
CLN: Removed SparsePanel #13778
Conversation
gfyoung
commented on an outdated diff
Jul 24, 2016
gfyoung
commented on an outdated diff
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. |
gfyoung
commented on the diff
Jul 24, 2016
| -dwp = Panel.fromDict({'foo': dm}) | ||
| -# sdf = SparseDataFrame(data) | ||
| - | ||
| - | ||
| -lp = stack_sparse_frame(sdf) | ||
| - | ||
| - | ||
| -swp = SparsePanel({'A': sdf}) | ||
| -swp = SparsePanel({'A': sdf, | ||
| - 'B': sdf, | ||
| - 'C': sdf, | ||
| - 'D': sdf}) | ||
| - | ||
| -y = sdf | ||
| -x = SparsePanel({'x1': sdf + new_data_like(sdf) / 10, | ||
| - 'x2': sdf + new_data_like(sdf) / 10}) |
gfyoung
Member
|
jreback
added the
Deprecate
label
Jul 24, 2016
jreback
commented on the diff
Jul 24, 2016
| @@ -77,9 +77,8 @@ distinct from the ``fill_value``: | ||
| sparr = pd.SparseArray(arr) | ||
| sparr | ||
| -Like the indexed objects (SparseSeries, SparseDataFrame, SparsePanel), a | ||
| -``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``: |
jreback
Contributor
|
jreback
commented on the diff
Jul 24, 2016
| @@ -543,25 +543,6 @@ def test_sparse_frame(self): | ||
| self._check_roundtrip(ss3, tm.assert_frame_equal, | ||
| check_frame_type=True) | ||
| - def test_sparse_panel(self): | ||
| - |
jreback
Contributor
|
jreback
commented on the diff
Jul 24, 2016
| @@ -2665,23 +2665,6 @@ def test_sparse_frame(self): | ||
| self._check_double_roundtrip(ss3, tm.assert_frame_equal, | ||
| check_frame_type=True) | ||
| - def test_sparse_panel(self): |
gfyoung
Member
|
|
@jreback : what error catching are you referring to in your PR? |
codecov-io
commented
Jul 25, 2016
•
Current coverage is 85.23% (diff: 75.00%)@@ 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
|
jreback
and 1 other
commented on an outdated diff
Jul 25, 2016
| @@ -15,13 +15,13 @@ | ||
| Sparse data structures | ||
| ********************** | ||
| -We have implemented "sparse" versions of Series, DataFrame, and Panel. These | ||
| -are not sparse in the typical "mostly 0". You can view these objects as being | ||
| -"compressed" where any data matching a specific value (NaN/missing by default, | ||
| -though any value can be chosen) is omitted. A special ``SparseIndex`` object | ||
| -tracks where data has been "sparsified". This will make much more sense in an | ||
| -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 |
gfyoung
Member
|
jreback
and 1 other
commented on an outdated diff
Jul 25, 2016
jreback
added this to the
0.19.0
milestone
Jul 25, 2016
jreback
referenced
this pull request
Jul 25, 2016
Open
DEPR: deprecations log for removed issues #13777
|
lgtm @gfyoung minor doc changes. ping when green. |
|
@gfyoung I think I took out the reference in my other PR (to SparsePanel); I'll rebase after this. |
jreback
closed this
in 690d52c
Jul 26, 2016
|
thanks @gfyoung |
gfyoung commentedJul 24, 2016
Title is self-explanatory. Picks up where #11157 left off.