Python
unsupported operand type(s) for -: 'float' and 'decimal.Decimal'
ndlessrain
2021. 1. 30. 14:38
728x90
df["close"].std()
표준편차를 구하려 했더니 decimal 타입이라고 계산이 안된다 함.
어차피 소수점 별로 필요 없어서 int 타입으로 형변환해서 진행.
df["close"] = pd.to_numeric(df["close"])
728x90