-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: Clean up of pandas.plotting #28177
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
Comments
may i have a try on this if some agreements are reached by maintainers? |
I'll be creating new issues for the tasks that result from this issue, but you're surely welcome to work on those. |
I just ran across this and see that it is fairly recent, hooray! Might I make an observation of something to consider as this rework is done? Grouped histograms. There are currently 8 native ways to do this, including the "redundant" I am concerned because if the plan is to drop Is this the right place to bring it up or should I make a separate issue on grouping behavior? |
Does #11053 already contain
everything?
…On Mon, Sep 9, 2019 at 2:42 PM Andrea Smith ***@***.***> wrote:
I just ran across this and see that it is fairly recent, hooray! Might I
make an observation of something to consider as this rework is done? *Grouped
histograms.* There are currently 8 native ways to do this, including the
"redundant" .hist and .plot.hist and depending on what kind of object
you're calling it from. Almost none of them behave the same and some don't
behave in any expected way (no grouping).
I am concerned because if the plan is to drop Series.hist and
DataFrame.hist, (which is fine by me actually I don't like API
redundancy), it is worth noting that grouping using the by= keyword to
Series.plot.hist and DataFrame.plot.hist *does not work*. I've compiled
all the behaviors in this spreadsheet (file should be available here
<https://drive.google.com/file/d/1jVCxw_zshguW4Xfwi8NYWDptCQXnpWGt/view?usp=sharing>
).
Is this the right place to bring it up or should I make a separate issue
on grouping behavior?
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#28177?email_source=notifications&email_token=AAKAOIXDSDHD64BH4PPK2ZLQI2RJHA5CNFSM4IQFLFHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6IZMKA#issuecomment-529634856>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAKAOIVJDXWPFXOI6HESNHTQI2RJHANCNFSM4IQFLFHA>
.
|
@TomAugspurger Well it looks like that's along the right track, for sure ... that
Yield these two plots: As you can see the first one uses subplots, but the second one just plots the whole histogram of 'A' with no grouping whatsoever. |
It looks like one way of achieving the |
Actually, I just found issue #15079 which I think is most closely related, methinks. Sorry for cluttering the space here. However, since actually implementing |
@datapythonista would it make sense to make checkboxes in the top post to clarify what the status of this issue is? |
I opened this to have a discussion and see if people was happy with my proposed changes. But I don't think there has been any discussion or any progress on this. So probably not worth having the checkboxes for now. |
Hello, is there any planned change on pandas.plotting? I see this issue is from 2019 but open. |
xref: #26747, #28159
The current plotting API feels inconsistent and I think it's the one we have for historical reasons, and not the one we want. I propose the next changes:
.plot
accessor as is (e.g.Series.plot.hist
,Series.plot(kind='box')
). In the future we should consider two things:**kwargs
Series.hist
->Series.plot.hist
)DataFrame.hist
->DataFrame.plot.hist
)pandas.plotting.boxplot
->DataFrame.plot.box
)DataFrame.boxplot
->DataFrame.plot.box
)Move the matplotlib backend to a separate project (
pandas.plotting._matplotlib
->pandas_matplotlib
)Move to the matplotlib backend the non-accessor plotting functions:
pandas.plotting.andrews_curves
->pandas_matplotlib.andrews_curves
)->
pandas_matplotlib.register`)CC: @pandas-dev/pandas-core @jakevdp
The text was updated successfully, but these errors were encountered: