Skip to content

Instantly share code, notes, and snippets.

@kiddojazz
Created January 15, 2023 16:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kiddojazz/65c9ce625e0bc8756c13d8aefba7ffda to your computer and use it in GitHub Desktop.
Save kiddojazz/65c9ce625e0bc8756c13d8aefba7ffda to your computer and use it in GitHub Desktop.
#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