Created
December 30, 2021 07:15
-
-
Save A-safarji/50e339b8ac8170a6def08849d1e45717 to your computer and use it in GitHub Desktop.
read the data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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