Skip to content

Instantly share code, notes, and snippets.

Created January 15, 2023 16:33
What would you like to do?
#Create a new dataframe with only the Adj Close Column
data = goog_hist.filter(["Close"])
#Convert the dataframe to a numpy array
dataset = data.values
#Get the number of rows to train the model on
training_data_len = math.ceil( len(dataset) *.8) #This is use to train 80% of the dataset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment