-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
API: consider deprecating DataFrame.hist in favor of DataFrame.plot.hist #11053
Comments
@shoyer @TomAugspurger either one of you for 0.18.0? |
Excuse my naivete, but what is to be done here? I did a quick test and all of the |
this issue is about emitting a deprecation for these (the replace is already there) |
Is this as simple as tossing a bunch of deprecate decorators onto things, then? |
I think these are actually defined in |
Well, the
Not a typical comment in PS: I think that closing this should also correspond with closing one of the oldest issues still open, #413. |
yeah, plotting is like Alice-in-wonderland.......... |
@jbrockmendel I think these are all historical. No reason they should not be deprecated / fixed. (refering to.hist and .boxplot); .plot is by-definition the namespace |
anyone want to do this deprecation? |
I've noticed that |
Right, part of the deprecation would be providing a way to achieve the behavior of from @mangecoeur in #21048 (comment) Code Sample, a copy-pastable example if possiblecols = ['heat_total', 'area_density', 'mean_n_floors',
'n_buildings', 'area_demand_density_grid', 'floor_demand_density']
plt.figure()
df[cols].plot.hist(
bins=20,
alpha=0.5
)
plt.figure()
df[cols].hist(
bins=20,
alpha=0.5
) Problem description
Result of Result Expected Output
Output of
|
This came up in the PR adding plot submethods like
.plot.hist
: #9321 (comment)As long as API differences can be reconciled, I think it would be a nice idea to deprecate (and eventually remove)
DataFrame.hist
,DataFrame.boxplot
andSeries.hist
in favor of the accessor mtehods.This old issue discusses API differences (possibly no longer accurate/relevant?): #413
The text was updated successfully, but these errors were encountered: