Get a value of a cell in pandas specifying rows of other column rather than the index column

前端 未结 0 1280
失恋的感觉
失恋的感觉 2021-02-08 15:08
candy_data = pd.read_csv(candy_filepath, index_col=\'id\')

more_sugar = \'Air Heads\' if candy_data.iloc[2][\'sugarpercent\'] > candy_data.iloc[4][\'sugarpercent\']          


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