Skip to content

How to merge grouped data #149

@iiiJenny

Description

@iiiJenny

Troubleshooting

合并grouped data后,无法用pandas引用某一列数据

Describe your question

初始数据如下图:
image
目标:我想根据pic(10个)和pos_x,pos_y(方位:左中右)进行分类,算出每个组合x与y的最大最小值。

  1. groupby数据:根据上述三个变量合并形成10pic大分组,1033小分类,每类均有x,y的min和max。
  2. 但是,columns的是错位的(pic和pos_x,pos_y偏下);
    image
  3. 无法引用pic等;引用lable等出现的是组合形式(series.Series)
    image
    image
    image

如何像平时引用pandas每一列一样引用数据呢?如:df['x']-->出来一列数据

@hupili could you please help me? thax~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions