-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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: DataFrame.melt(), DataFrame.wide_to_long() #14876
Comments
cc @Nuffe |
Yes the nomenclature could probably be a bit confusing. Hadley Wickham introduced
In the Stata camp there is just reshape which takes an additional direction parameter ( So in a "taxonomy of reshapes", |
We didn't discuss |
xref #12640 xref #14876 Author: Aleksey Bilogur <[email protected]> Closes #15521 from ResidentMario/12640 and squashes the following commits: 1657246 [Aleksey Bilogur] two doc changes 28a38f2 [Aleksey Bilogur] tweak whatsnew entry. 5f306a9 [Aleksey Bilogur] +whatsnew ff895fe [Aleksey Bilogur] Add tests, update docs. 11f3fe4 [Aleksey Bilogur] rm stray debug. 3cbbed5 [Aleksey Bilogur] Melt docstring. d54dc2f [Aleksey Bilogur] +pd.DataFrame.melt.
closing this for #15521 was merged. We can discuss later what we are doing in `wide_to_long`` |
xref #14779
So I think it might be nice to have these as convenience methods on DataFrame().
we can deprecate (
pd.melt
&pd.wide_to_long
), though we didn't deprecatepd.pivot_table
, even though it exists onDataFrame
, so this can be a discussion point.but if we do this, then maybe have a shorter / better name than
wide_to_long
? (even though it is strictly speaking pretty informative).The text was updated successfully, but these errors were encountered: