Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 19, 2021 08:16
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 amankharwal/6b317799bb15ecf1b7763b7956e6db2b to your computer and use it in GitHub Desktop.
Save amankharwal/6b317799bb15ecf1b7763b7956e6db2b to your computer and use it in GitHub Desktop.
data = data[["Date", "Close"]]
data["Date"] = pd.to_datetime(data.Date)
data["Close"].plot(figsize=(12, 8), title="Apple Stock Prices", fontsize=20, label="Close Price")
plt.legend()
plt.grid()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment