Leci37 / TensorFlow-stocks-prediction-Machine-learning-RealTime

Predict operation stocks points (buy-sell) with past technical patterns, and powerful machine-learning libraries such as: Sklearn.RandomForest , Sklearn.GradientBoosting, XGBoost, Google TensorFlow and Google TensorFlow LSTM..Real time Twitter:
241 stars 75 forks source link

[Bug Report] there is a mismatch between the length of the header or column names and the actual data being read into a pandas DataFrame. This could result in some data loss or incorrect parsing of the CSV file. #20

Open kivzark opened 1 year ago

kivzark commented 1 year ago

there is a mismatch between the length of the header or column names and the actual data being read into a pandas DataFrame. This could result in some data loss or incorrect parsing of the CSV file.

Output given: year1month10 UBER ==== https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY_EXTENDED&symbol=UBER&interval=15min&slice=year1month10&apikey=FXZ0 /Users/Grau/Desktop/trade/stocks-prediction-Machine-learning-RealTime-telegram-master/0_API_alphavantage_get_old_history.py:89: ParserWarning: Length of header or names does not match length of data. This leads to a loss of data with index_col=False. df_a_time = pd.read_csv(io.StringIO(raw_response.text), index_col=False, sep=',') UBER df: (2, 1) year1month11 UBER ==== https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY_EXTENDED&symbol=UBER&interval=15min&slice=year1month11&apikey=FXZ0 Traceback (most recent call last): File "/Users/Grau/Desktop/trade/stocks-prediction-Machine-learning-RealTime-telegram-master/0_API_alphavantage_get_old_history.py", line 89, in df_a_time = pd.read_csv(io.StringIO(raw_response.text), index_col=False, sep=',')