Python[panda/lambada] - group and aggregate on DF by specific columns

前端 未结 0 537
星月不相逢
星月不相逢 2020-12-31 23:40

in DF have multiple fields: parent_path ,child,level,flag,logic

I want to group the DF by parent_path ,and collect all childs under same parent. I got to this:

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