我有一列“货币”和另一列“金额”。“currency”列包含以下格式的对象: USD、EUR、SEK、AUD等。我想通过转换所有其他货币来将所有'amount‘值转换为USD,并在新列中打印新的转换,但我在这一点上遇到了困难: from forex_python.converter'currency']
for column in df
我正在检索雅虎股票报价器数据,并希望将给定的货币转换为欧元。为此,我使用Python Library Currency Converter和pandas方法multiply。其中一列,交易量,不应该被“转换”-跳过它的最好方法是什么?import pandas as pdimport pandas_datareader.data as web
from pandas import Series, DataFrame或者,我可以只针对这一列,并将其转换回来