Skip to content

Instantly share code, notes, and snippets.

@kiddojazz
Created January 15, 2023 16:33
Embed
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
training_data_len
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment