IYATE在PYTHON的数据帧线上

时间:2018-05-01 11:08:13

标签: python-3.x loops dataframe

df = pd.read_csv('final.csv',names=['A','B','C','D'])

df2 = pd.read_csv('final.csv',names=['A','B','C','D','E'])
for x in df2:
    z=x.loc['A','B']
    df.loc['A','B']
    a=df[['C']]

我想在df2中迭代df和chnage值。如果在df中A和B的值等于A和B在df2中,则df中的C等于df2的C + E / 2

0 个答案:

没有答案