pandas groupby without turning grouped by column into index

后端 未结 4 1846
粉色の甜心
粉色の甜心 2020-11-27 17:43

The default behavior of pandas groupby is to turn the group by columns into index and remove them from the list of columns of the dataframe. For instance, say I have a dataF

4条回答
提交回复
热议问题