我想更改包含在另一个数据帧列/序列中的数据帧的ros值
我有2个数据帧:
means.columns = Index(['Date', 'a_min', 'a_cierre', 'a_max',
'b_min', 'b_cierre', 'b_max', 'conj'], dtype='object')
pai.columns = Index(['mes', 'direccion', 'accion', 'min', 'cierre', 'max', 'Date'],
dtype='object')
接下来的代码很好地解决了我的问题:
for x in pai.Date:
means[means.Date==x] = 9999
但我只想写一行
目前没有回答
相关问题 更多 >
编程相关推荐