-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DEPR: Panel deprecated #15601
DEPR: Panel deprecated #15601
Conversation
5a39fa6
to
d3da4bc
Compare
Codecov Report
@@ Coverage Diff @@
## master #15601 +/- ##
==========================================
- Coverage 90.99% 90.99% -0.01%
==========================================
Files 145 145
Lines 49521 49537 +16
==========================================
+ Hits 45061 45074 +13
- Misses 4460 4463 +3
Continue to review full report at Codecov.
|
pandas/io/pytables.py
Outdated
|
||
# if we have stored a NaN in the categories | ||
# then strip it; in theory we could have BOTH | ||
# -1s in the codes and nulls :< |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getting rid of a deprecation warning that was being trapped :>
pandas/io/pytables.py
Outdated
@@ -3406,10 +3416,12 @@ def create_axes(self, axes, obj, validate=True, nan_rep=None, | |||
if existing_table is not None: | |||
indexer = len(self.non_index_axes) | |||
exist_axis = existing_table.non_index_axes[indexer][1] | |||
if append_axis != exist_axis: | |||
if not array_equivalent(np.array(append_axis), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
I'm a bit behind on the discussion here, but have we talked about how we'll handle things like rolling corr and cov? In [17]: df = pd.DataFrame(np.random.randn(100, 2))
In [18]: df.rolling(12).corr()
Out[18]:
<class 'pandas.core.panel.Panel'>
Dimensions: 100 (items) x 2 (major_axis) x 2 (minor_axis)
Items axis: 0 to 99
Major_axis axis: 0 to 1
Minor_axis axis: 0 to 1 |
That's a good point, I don't think we already discussed that.
|
well I would simply change this to return a MI DataFrame as @jorisvandenbossche shows. This solves the problem and just fixes it. We could also just show a FutureWarning (a specific one that this is going to change to a MI DataFrame in the next version). But that just defers the change itself, and getting warning of the change really doesn't help your code in this case as you have a different object being returned. any objections to simply changing it? (I will do this as a separate PR). Further I think we should actually name these axes ( |
fcbecda
to
e716b3a
Compare
…rop=False this is sometimes failing
@jorisvandenbossche all pushed Here is the whatsnew example
|
I haven't looked at the code in details, but the docs look great here -- thanks @jreback ! |
and bombs away. sad day :< |
Perhaps we can think about panels again as a way to manage a collection of DataFrame objects in C++ once pandas 2.0 hits the shelves |
yep. I think was of the biggest criticisms was the indexing (how the axes were named), and the fact that indexing was not the same as numpy. |
"values" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"values" is the law of the land. This usage is internal, hence why we aren't going through a deprecation cycle. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"values" is the law of the land. This usage is internal, hence why we aren't going through a deprecation cycle. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"values" is the law of the land. This usage is internal, hence why we aren't going through a deprecation cycle. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"values" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"value" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
"value" is the law of the land. xref pandas-devgh-14645. Follow-up to pandas-devgh-15601.
closes #13563
going to be on top of #15677
Partially addresses #14565 (comment)
Note this is currently a
FutureWarning
mainly to fail the tests if I missed anything. Intention is to change to aDeprecationWarning
.