yacoubb / stock-trading-ml

A stock trading bot that uses machine learning to make price predictions.
GNU General Public License v3.0
598 stars 254 forks source link

droping the IPO day data #20

Open NicBT opened 4 years ago

NicBT commented 4 years ago

when you intend to drop the IPO day data with data = data.drop(0, axis=0), you're actually dropping the most recent data, not the oldest.

Should instead be data = data.drop(data.shape[0] - 1, axis=0)