fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
924 stars 197 forks source link

Rename stack/unstack to melt/unmelt #435

Closed zyzhu closed 5 years ago

zyzhu commented 5 years ago

My colleague and I have been using Deedle for a few years but never realized the existence of stack/unstack function. The normal terms I would look for in intellisense is pivot/melt that's common in pandas and Excel domain. https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.pivot.html https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.melt.html

Similar ideas was proposed in #217

It would be ideal to rename them to be the same as pandas.

zyzhu commented 5 years ago

Just realized there is a pivotTable function. Apparently I didn't go through Titanic tutorial carefully. :(

Unstack was just the reverse of Stack, a generic case of pivotTable. I would just rename stack/unstack with melt/unmelt and leave pivotTable as is.

tpetricek commented 5 years ago

I'm happy to rename stack/unstack to melt/unmelt. Consistency with pandas is probably a good idea!

zyzhu commented 5 years ago

Closed as it's addressed in #436