I have an issue multiplying 2 dataframes as follows with the same number of columns and rows. Both are filled with a float64 data type. It output an empty dataframe. Any contribution could help, please.
pos
dataframe:
2019-03-01 2019-03-02 2019-03-03
currency
1WO 2.600000e+02 2.600000e+02 2.600000e+02
ADH 8.219730e+02 8.219730e+02 8.219730e+02
c_price
dataframe:
timestamp 2019-03-01 2019-03-02 2019-03-03
currency
1WO 1.8140 1.7230 1.7250
ADH 0.2425 0.2465 0.2387
my code:
jpy_bal = pos * c_price
df.columns.dtype
output for both df:
object
df.dtypes
output for both df:
2019-03-01 float64
2019-03-02 float64
2019-03-03 float64
2019-03-04 float64
2019-03-05 float64
...
2019-11-01 float64
2019-11-02 float64
2019-11-03 float64
2019-11-04 float64
2019-11-05 float64
Length: 250, dtype: object