P9
P9
P9
#For aggregate
agg=df.pivot_table(df, index=['Symbol'], aggfunc='sum')
#To check datatype (to make sure all columns are now float)
print(df.dtypes)
x=(df.Symbol)
y=(df.Open)
py.figure(figsize=(30,20))
py.bar(x,y)
py.show()
x1=(df.Symbol)
y1=(df.High)
py.figure(figsize=(30,20))
py.bar(x1,y1)
py.show()
x2=(df.Symbol)
y2=(df.Low)
py.figure(figsize=(30,20))
py.bar(x2,y2)
py.show()
x3=(df.Symbol)
y3=(df['Last Traded Price'])
py.figure(figsize=(30,20))
py.bar(x3,y3)
py.show()
x4=(df.Symbol)
y4=(df.Change)
py.figure(figsize=(30,20))
py.bar(x4,y4)
py.show()
x5=(df.Symbol)
y5=(df['%Change'])
py.figure(figsize=(30,20))
py.bar(x5,y5)
py.show()
x6=(df.Symbol)
y6=(df['Traded Volume(lacs)'])
py.figure(figsize=(30,20))
py.bar(x6,y6)
py.show()
x7=(df.Symbol)
y7=(df['Traded Value(crs)'])
py.figure(figsize=(30,20))
py.bar(x7,y7)
py.show()
x8=(df.Symbol)
y8=(df['52 Week High'])
py.figure(figsize=(30,20))
py.bar(x8,y8)
py.show()
x9=(df.Symbol)
y9=(df['52 Week Low'])
py.figure(figsize=(30,20))
py.bar(x9,y9)
py.show()
x10=(df.Symbol)
y10=(df['365 Days % Change'])
py.figure(figsize=(30,20))
py.bar(x10,y10)
py.show()
x11=(df.Symbol)
y11=(df['30 Days % Change'])
py.figure(figsize=(30,20))
py.bar(x11,y11)
py.show()
The Stock_data from NSE web site for October 13, 2019 is -