-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Description
Troubleshooting
合并grouped data后,无法用pandas引用某一列数据
Describe your question
初始数据如下图:
目标:我想根据pic(10个)和pos_x,pos_y(方位:左中右)进行分类,算出每个组合x与y的最大最小值。
- groupby数据:根据上述三个变量合并形成10pic大分组,1033小分类,每类均有x,y的min和max。
- 但是,columns的是错位的(pic和pos_x,pos_y偏下);
- 无法引用pic等;引用lable等出现的是组合形式(series.Series)
如何像平时引用pandas每一列一样引用数据呢?如:df['x']-->出来一列数据
@hupili could you please help me? thax~
Metadata
Metadata
Assignees
Labels
No labels