Skip to content

Instantly share code, notes, and snippets.

@A-safarji
Created December 30, 2021 07:15
Show Gist options
  • Select an option

  • Save A-safarji/50e339b8ac8170a6def08849d1e45717 to your computer and use it in GitHub Desktop.

Select an option

Save A-safarji/50e339b8ac8170a6def08849d1e45717 to your computer and use it in GitHub Desktop.
read the data
# read data
df1 = pd.read_csv("stock.csv")
df1.head()
# select Date and Adj Close from the dataset
df2 = df1[['Date','Adj Close']]
df2.tail()
# change names to fit NeuralProphet req
apple_features = df2.rename(columns = {"Date":"ds","Adj Close":"y"})
apple_features.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment