파이썬 에러 TypeError: DatetimeArray._generate_range() got an unexpected keyword argument 'closed'
프로젝트에서 비트코인의 OHLCV 데이터를 수집하고, LSTM 모델로 미래 가격을 예측하는 과정을 진행하다가 pd.date_range 함수 사용에서 오류가 발생했다. 오류는 closed 키워드 인자 때문이었다. 오류 메세지: Traceback (most recent call last): File "C:\PythonProject\pythonProject\net_LSTM_btc.py", line 63, in future_dates = pd.date_range(start=df.index[-1], periods=future_days + 1, closed='right') File "C:\Users\DEV3-PC\anaconda3\lib\site-packages\pandas\core\indexes\datetimes..
파이썬
2024. 1. 30. 23:07