Skip to content

Instantly share code, notes, and snippets.

@therealnaveenkamal
Last active April 29, 2021 03:56
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 therealnaveenkamal/a798a177447a1c99d80519ed7b9e7ab5 to your computer and use it in GitHub Desktop.
Save therealnaveenkamal/a798a177447a1c99d80519ed7b9e7ab5 to your computer and use it in GitHub Desktop.
The Volume Plot that shows the period of alertness and large trades. Significantly, Volume can turn out as an essential feature
import seaborn as sns
import matplotlib.pyplot as plt
from pandas_datareader import data
df = data.DataReader("RELIANCE.NS",
data_source = "yahoo",
start = "2010-04-28",
end = "2021-03-28")
plt.style.use("fivethirtyeight")
fig, ax = plt.subplots(figsize=(15, 10))
ax.set_title("Daily Volume")
ax.set_xlabel("Year")
ax.set_ylabel("Volume")
sns.lineplot(df.index, df['Volume'] )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment