-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPyplot.py
More file actions
90 lines (38 loc) · 1.55 KB
/
Pyplot.py
File metadata and controls
90 lines (38 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
marks = pd.read_csv ("F:\Student_Management_System\marks.csv",index_col=0)
dfMarks = pd.DataFrame(marks)
print(dfMarks)
dfMarks.plot(kind='box')
plt.show()
'''week1 = [5500,7800,4580,4500,1540,1200,3200]
week2 = [5600,8700,7840,5410,5600,5200,3200]
week3 = [7800,2000,3000,4500,7800,4000,1000]
day = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday']
week = {"Week 1":week1,"Week 2":week2,"Week 3":week3,"Day":day}
Sales = pd.DataFrame(week)
print(Sales)
a = (30 * np.random.rand(7))**2
Sales.plot(kind='scatter',x='Day',y='Week 1',s=a,alpha=0.)
plt.title("Weekl")
plt.show()
hei = [60,61,63,65,61,60,66,58,56,66,67,69,67,64,66,61,63,69,67,62,63,64,62,60,66,61,63]
Height = pd.DataFrame(hei)
print(Height)
Height.plot(kind='hist',bins=[55,58,61,64,67,70],edgecolor='black',facecolor='red',fill=True,hatch='/')
plt.show()'''
'''#To print Monthly Sales
Month_Names = ['Jan','Feb','Mar','Apr','May','June','July']
Pen_Sales = [120,150,130,140,110,180,145]
Notebook_Sales = [100,170,140,120,130,170,145]
plt.scatter(Month_Names,Pen_Sales)
plt.scatter(Month_Names,Notebook_Sales)
plt.plot(Month_Names,Pen_Sales,marker='<',color = 'y',linewidth=5)
plt.plot(Month_Names,Notebook_Sales,linestyle='dashdot')
plt.title("Monthly Sales")
plt.xlabel("Month Names")
plt.ylabel("Sales Made")
plt.grid(True)
plt.legend(["Notebook","Pen"],loc='best')
plt.show()'''