質問編集履歴
1
ascsdjbvjd msnk
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,25 +9,7 @@
|
|
9
9
|
import matplotlib.pyplot as plt
|
10
10
|
import japanize_matplotlib
|
11
11
|
|
12
|
-
p = pd.read_html("https://education-career.jp/magazine/data-report/2019/education-continuance-rate_2018/", index_col=0)
|
13
12
|
|
14
|
-
print(p[3])
|
15
|
-
|
16
|
-
total = p[3][1:48]
|
17
|
-
men = p[3][2][1:48]
|
18
|
-
wmen = p[3][3][1:48]
|
19
|
-
|
20
|
-
|
21
|
-
fig = plt.figure()
|
22
|
-
|
23
|
-
plt.plot(total, men, label="Men", c="red")
|
24
|
-
plt.plot(total, wmen, label="Wmen", c="blue")
|
25
|
-
plt.xlim(0, 47)
|
26
|
-
plt.ylim(0, 47)
|
27
|
-
plt.grid(c="0.7", ls="dotted")
|
28
|
-
plt.tick_params(direction="in")
|
29
|
-
plt.xlabel("大学進学率")
|
30
|
-
plt.ylabel("都道府県")
|
31
13
|
plt.legend()
|
32
14
|
|
33
15
|
plt.show()
|