質問編集履歴
5
情報の改善
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,7 +12,6 @@
|
|
12
12
|
]
|
13
13
|
```
|
14
14
|
↑のデータのフル版はこちらに貼っておきます。
|
15
|
-
https://colab.research.google.com/drive/1qD-wUVhLBeOdciZQzV5-vnhCoiL7gdC9?usp=sharing
|
16
15
|
### 実現したいこと
|
17
16
|
|
18
17
|
先ほど取得した情報を regex で整形し、pandas で表にしようと試みました。以下のコードの通りです。
|
4
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,8 +9,10 @@
|
|
9
9
|
"Progress Bar 2023\n@ProgressBar202_\n·\n2022年12月28日\n2022 is 99% complete.\n1,083\n4.8万\n28.2万",
|
10
10
|
"Progress Bar 2023\n@ProgressBar202_\n·\n2022年12月25日\n2022 is 98% complete.\n577\n2.1万\n19.9万",
|
11
11
|
...
|
12
|
+
]
|
12
13
|
```
|
13
|
-
|
14
|
+
↑のデータのフル版はこちらに貼っておきます。
|
15
|
+
https://colab.research.google.com/drive/1qD-wUVhLBeOdciZQzV5-vnhCoiL7gdC9?usp=sharing
|
14
16
|
### 実現したいこと
|
15
17
|
|
16
18
|
先ほど取得した情報を regex で整形し、pandas で表にしようと試みました。以下のコードの通りです。
|
3
五時
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Python
|
1
|
+
Python の TypeError を解消したい
|
test
CHANGED
File without changes
|
2
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
"Progress Bar 2023\n@ProgressBar202_\n·\n2023年1月1日\n2023 is 1% complete.\n1,865\n7.7万\n61.3万",
|
8
8
|
"Progress Bar 2023\n@ProgressBar202_\n·\n2023年1月1日\n2022 is 100% complete.\n902\n5.9万\n50.5万",
|
9
9
|
"Progress Bar 2023\n@ProgressBar202_\n·\n2022年12月28日\n2022 is 99% complete.\n1,083\n4.8万\n28.2万",
|
10
|
-
"Progress Bar 2023\n@ProgressBar202_\n·\n2022年12月25日\n2022 is 98% complete.\577\n2.1万\n19.9万",
|
10
|
+
"Progress Bar 2023\n@ProgressBar202_\n·\n2022年12月25日\n2022 is 98% complete.\n577\n2.1万\n19.9万",
|
11
11
|
...
|
12
12
|
```
|
13
13
|
|
1
目的を追加しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,6 +38,27 @@
|
|
38
38
|
|
39
39
|
df = pd.DataFrame(table)
|
40
40
|
```
|
41
|
+
それを以下のコードで可視化したいと思っています。
|
42
|
+
```Python
|
43
|
+
plt.figure(figsize=(15, 10))
|
44
|
+
plt.subplot(2,1,1)
|
45
|
+
for year in [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023]:
|
46
|
+
data = df[df.year == year].sort_values("percent")
|
47
|
+
plt.plot(data.percent, data.RT, ".-", label="%d"%year)
|
48
|
+
plt.legend()
|
49
|
+
plt.xlabel("%")
|
50
|
+
plt.xticks(range(0, 101, 10))
|
51
|
+
plt.title("# of RTs")
|
52
|
+
plt.subplot(2,1,2)
|
53
|
+
for year in [2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023]:
|
54
|
+
data = df[df.year == year].sort_values("percent")
|
55
|
+
plt.plot(data.percent, data.fab, ".-", label="%d"%year)
|
56
|
+
plt.legend()
|
57
|
+
plt.xlabel("%")
|
58
|
+
plt.xticks(range(0, 101, 10))
|
59
|
+
plt.title("# of fabs")
|
60
|
+
plt.show()
|
61
|
+
```
|
41
62
|
|
42
63
|
### 発生している問題・エラーメッセージ
|
43
64
|
先ほどのコードを実行すると、
|