Py学习  »  spitoglou  »  全部回复
回复总数  1
4 年前
回复了 spitoglou 创建的主题 » python中货币的if/then语句

实现你想要的一种方法是:

for index, row in drop_boats.iterrows():
  if row['Currency'] == 'EUR':
    drop_boats.loc[index, 'Price'] = row['Price'] * 1.10

您可以相应地添加其他条件。。。