728x90
    
    
    
  df["close"].std()
표준편차를 구하려 했더니 decimal 타입이라고 계산이 안된다 함.
어차피 소수점 별로 필요 없어서 int 타입으로 형변환해서 진행.
df["close"] = pd.to_numeric(df["close"])
728x90
    
    
    
  'Python' 카테고리의 다른 글
| python 천단위 콤마 (0) | 2021.01.30 | 
|---|---|
| python plt plot 크기 (0) | 2021.01.30 | 
| nan can not be used with MySQL (0) | 2021.01.27 | 
| python list to df(dataframe) (0) | 2021.01.27 | 
| python 초 단위 loop (0) | 2021.01.27 |