how to set a new column based on group in pandas

后端 未结 0 657
天涯浪人
天涯浪人 2020-11-21 09:07

I have a dataframe as follows.

   ID  days group

0 1 5.3 A 1 2 6.0 A 2 3 6.7 A 3 4 5.5 B 4 5 6.2 B 5

相关标签:
回答
  • 消灭零回复
提交回复
热议问题