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

DEPR: Panel4d and panelND #13776

Closed
wants to merge 1 commit into from
Closed

DEPR: Panel4d and panelND #13776

wants to merge 1 commit into from

Conversation

jreback
Copy link
Contributor

@jreback jreback commented Jul 24, 2016

closes #13564

@jreback jreback added the Deprecate Functionality to remove in pandas label Jul 24, 2016
@jreback jreback added this to the 0.19.0 milestone Jul 24, 2016
@jreback
Copy link
Contributor Author

jreback commented Jul 24, 2016

This is was a PITA (because some things produce warnings in PY2 but not in PY3) :<

@jorisvandenbossche @wesm @shoyer

@jreback
Copy link
Contributor Author

jreback commented Jul 24, 2016

@shoyer @MaximilianR esp have a look at the warnings (e.g. maybe have a specific page)?

@shoyer
Copy link
Member

shoyer commented Jul 24, 2016

Can we add the deprecation notice to the docstrings for PanelND and Panel4D, too?

@MaximilianR Let's see if we can finish up that doc page on xarray for panel users (pydata/xarray#832) -- it would be great to be able to link to that in the pandas docs.

@@ -37,6 +38,9 @@
def panel4d_init(self, data=None, labels=None, items=None, major_axis=None,
minor_axis=None, copy=False, dtype=None):

# deprecation GH13564
warnings.warn("Panel4D is deprecated and will be removed in a "
"future version", FutureWarning, stacklevel=2)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe refer to xarray here as well? (like in the docs)

@jorisvandenbossche
Copy link
Member

Oh boy, that will be a joy if when we can remove it :-)
Too late for now, but isn't there a way to eg test the warning once, and be able to mute them for all other tests?

@jreback
Copy link
Contributor Author

jreback commented Jul 24, 2016

I wish - the problem is that FutureWarninh is generic so No easy way

@jorisvandenbossche
Copy link
Member

Can't you filter with a regex on the message or module?

@jreback
Copy link
Contributor Author

jreback commented Jul 24, 2016

I gave it a try - u r welcome to change it - it's buggy in 27 I think

@jorisvandenbossche
Copy link
Member

For the next big depr then :-)

@codecov-io
Copy link

codecov-io commented Jul 24, 2016

Current coverage is 85.32% (diff: 100%)

No coverage report found for master at 4dd734c.

Powered by Codecov. Last update 4dd734c...38641c7

@max-sixty
Copy link
Contributor

@MaximilianR Let's see if we can finish up that doc page on xarray for panel users (pydata/xarray#832) -- it would be great to be able to link to that in the pandas docs.

I'll have a go this week!

@jreback
Copy link
Contributor Author

jreback commented Jul 25, 2016

@jorisvandenbossche updated.

@shoyer
cc @MaximilianR
we can always change the xarray link points later (I think we have an issue for that anyhow). As these need to go in the .to_xarray() doc-string as well.

@@ -58,11 +58,10 @@ class TestPDApi(Base, tm.TestCase):

# these are already deprecated; awaiting removal
deprecated_classes = ['SparsePanel', 'TimeSeries', 'WidePanel',
'SparseTimeSeries']
'SparseTimeSeries', 'Panel', 'Panel4D']
Copy link
Member

Choose a reason for hiding this comment

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

I don't think Panel is already deprecated?

@jorisvandenbossche
Copy link
Member

Small comment/question, for the rest ready to merge for me. The doc link can indeed be updated later.

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.

Deprecation of Panel4D/PanelND
5 participants