import pandas as pd s1= pd.Series([2,3,4,5,6,7,8,9]) print(s1)
0 2 1 3 2 4 3 5 4 6 5 7 6 8 7 9 dtype: int64
import matplotlib.pyplot as plt x=[1,2,3,4] y=[5,10,15,20] plt.bar(x,y,color="red",edgecolor="black") plt.show()
import matplotlib.pyplot as plt score=[11,9,8,7,8,9,7,8,9,15,18,19,21,25,30,7,8,30,28,29] plt.hist(score,bins=[10,17,25,30],histtype="barstacked",rwidth=0.6, color=["red"],edgecolor="green", orientation="horizontal") plt.show()