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

Remove Panel References #26287

Merged
merged 6 commits into from
May 7, 2019
Merged

Remove Panel References #26287

merged 6 commits into from
May 7, 2019

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented May 6, 2019

progress towards #25632

@@ -288,20 +288,7 @@ def validate_take_with_convert(convert, args, kwargs):


def validate_transpose_for_generic(inst, kwargs):
try:
Copy link
Member Author

Choose a reason for hiding this comment

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

This previously was only modifying the exception message for Panel objects before raising again, so I simplified to just remove the try...except altogether and let it raise as is

Copy link
Member

Choose a reason for hiding this comment

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

If it’s a one liner now, Is this still needed as a separate function?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea could probably just call this directly now; I'll give it a look tonight and repush

# TODO: Raise NotImplementedError or change note in extending.rst
from pandas.core.panel import Panel
return Panel
raise NotImplementedError("Not supported for DataFrames!")
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 TODO mentions changing the docs extending.rst but that looks to have already been done

@@ -4091,8 +4090,7 @@ def sort_values(self, by=None, axis=0, ascending=True, inplace=False,
0 A 2 0
1 A 1 1
"""
raise NotImplementedError("sort_values has not been implemented "
"on Panel or Panel4D objects.")
raise NotImplementedError("sort_values has not been implemented.")
Copy link
Member

Choose a reason for hiding this comment

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

Since this is now never hit, should this be AbstractMethodError?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yea I think could go for that too

@codecov
Copy link

codecov bot commented May 6, 2019

Codecov Report

Merging #26287 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26287      +/-   ##
==========================================
+ Coverage   91.98%   92.02%   +0.04%     
==========================================
  Files         175      175              
  Lines       52374    52301      -73     
==========================================
- Hits        48178    48132      -46     
+ Misses       4196     4169      -27
Flag Coverage Δ
#multiple 90.58% <100%> (+0.04%) ⬆️
#single 40.7% <66.66%> (-0.17%) ⬇️
Impacted Files Coverage Δ
pandas/io/pytables.py 90.22% <ø> (ø) ⬆️
pandas/core/ops.py 94.28% <ø> (+2.46%) ⬆️
pandas/core/series.py 93.67% <ø> (ø) ⬆️
pandas/util/_validators.py 96.8% <ø> (ø) ⬆️
pandas/core/panel.py 35.24% <ø> (-0.2%) ⬇️
pandas/core/groupby/groupby.py 97.24% <ø> (ø) ⬆️
pandas/core/reshape/concat.py 97.2% <ø> (ø) ⬆️
pandas/core/frame.py 97.01% <ø> (-0.01%) ⬇️
pandas/compat/numpy/function.py 90.9% <100%> (+2.93%) ⬆️
pandas/core/generic.py 93.57% <100%> (+0.03%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7120725...bc30088. Read the comment docs.

@codecov
Copy link

codecov bot commented May 6, 2019

Codecov Report

Merging #26287 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #26287      +/-   ##
==========================================
+ Coverage   91.99%   92.03%   +0.04%     
==========================================
  Files         175      175              
  Lines       52373    52294      -79     
==========================================
- Hits        48178    48128      -50     
+ Misses       4195     4166      -29
Flag Coverage Δ
#multiple 90.58% <100%> (+0.05%) ⬆️
#single 40.73% <66.66%> (-0.17%) ⬇️
Impacted Files Coverage Δ
pandas/io/pytables.py 90.22% <ø> (ø) ⬆️
pandas/core/ops.py 94.69% <ø> (+2.87%) ⬆️
pandas/core/series.py 93.67% <ø> (ø) ⬆️
pandas/util/_validators.py 96.8% <ø> (ø) ⬆️
pandas/core/panel.py 35.14% <ø> (-0.3%) ⬇️
pandas/core/groupby/groupby.py 97.24% <ø> (ø) ⬆️
pandas/core/reshape/concat.py 97.2% <ø> (ø) ⬆️
pandas/core/frame.py 97.01% <ø> (-0.01%) ⬇️
pandas/compat/numpy/function.py 90.8% <ø> (+2.82%) ⬆️
pandas/core/generic.py 93.57% <100%> (+0.03%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5eead57...c4cd707. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented May 7, 2019

an you merge master and some checks are failing

@jreback jreback added this to the 0.25.0 milestone May 7, 2019
@jreback jreback merged commit 2f182aa into pandas-dev:master May 7, 2019
@jreback
Copy link
Contributor

jreback commented May 7, 2019

thanks @WillAyd love deleting code!

@jreback
Copy link
Contributor

jreback commented May 7, 2019

@WillAyd WillAyd deleted the panel-cleanups branch May 7, 2019 14:52
@WillAyd
Copy link
Member Author

WillAyd commented May 7, 2019

Yea think so. I'll push a PR soon to correct

@topper-123 topper-123 mentioned this pull request May 7, 2019
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants