Alejandro Cremades commited on
Commit
004feb9
1 Parent(s): 97c1b61

Fixes wrong Japanese card names from MTGJSON

Browse files
middleschool-cardlist.ipynb CHANGED
@@ -76,7 +76,7 @@
76
  },
77
  {
78
  "cell_type": "code",
79
- "execution_count": 134,
80
  "metadata": {},
81
  "outputs": [
82
  {
@@ -137,6 +137,60 @@
137
  "print(middleschool_df.tail())\n"
138
  ]
139
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
140
  {
141
  "attachments": {},
142
  "cell_type": "markdown",
@@ -147,7 +201,7 @@
147
  },
148
  {
149
  "cell_type": "code",
150
- "execution_count": 137,
151
  "metadata": {},
152
  "outputs": [
153
  {
@@ -160,7 +214,7 @@
160
  "................................................................................\n",
161
  "................................................................................\n",
162
  "................................................................................\n",
163
- "..........."
164
  ]
165
  }
166
  ],
@@ -217,7 +271,7 @@
217
  },
218
  {
219
  "cell_type": "code",
220
- "execution_count": 138,
221
  "metadata": {},
222
  "outputs": [
223
  {
@@ -281,7 +335,7 @@
281
  },
282
  {
283
  "cell_type": "code",
284
- "execution_count": 139,
285
  "metadata": {},
286
  "outputs": [],
287
  "source": [
 
76
  },
77
  {
78
  "cell_type": "code",
79
+ "execution_count": 151,
80
  "metadata": {},
81
  "outputs": [
82
  {
 
137
  "print(middleschool_df.tail())\n"
138
  ]
139
  },
140
+ {
141
+ "attachments": {},
142
+ "cell_type": "markdown",
143
+ "metadata": {},
144
+ "source": [
145
+ "Remove Japanese card names that are wrong on MTGJSON"
146
+ ]
147
+ },
148
+ {
149
+ "cell_type": "code",
150
+ "execution_count": 152,
151
+ "metadata": {},
152
+ "outputs": [
153
+ {
154
+ "name": "stdout",
155
+ "output_type": "stream",
156
+ "text": [
157
+ "Before:\n",
158
+ " oracle_id name name_ja\n",
159
+ "0 0fe602b7-9f88-4d3d-af24-7790df867ed5 Aether Barrier Æther Barrier\n",
160
+ "0 1e33f39b-a61a-4a09-a541-16cc1bd53d02 Aether Burst Æther Burst\n",
161
+ "0 15e83068-6253-4c65-8679-7295f3dc2075 Aether Charge Æther Charge\n",
162
+ "0 a3c35742-e306-49b6-b042-db4f685c6f86 Aether Flash Æther Flash\n",
163
+ "0 6697fe5b-90ac-4321-aa2f-cdc6ec283cb4 Aether Mutation Aether Mutation\n",
164
+ "0 61105cb5-d7a1-4021-a006-dd1b947dfa68 Aether Sting Æther Sting\n",
165
+ "0 ff4297d3-3d96-4bd6-a606-1bdc20a6df2b Aether Storm Æther Storm\n",
166
+ "0 2fbf95b4-bcf4-4b5e-b5dc-0294f2b48d3e Aether Tide Æther Tide\n",
167
+ "0 a61ceda1-5993-479e-945f-15753eeb7049 Tainted Aether Tainted Æther\n",
168
+ "0 05a7ca83-e820-433f-b9e9-151e817d3708 Tar Pit Warrior Tar Pit Warrior\n",
169
+ "After:\n",
170
+ " oracle_id name name_ja\n",
171
+ "0 0fe602b7-9f88-4d3d-af24-7790df867ed5 Aether Barrier None\n",
172
+ "0 1e33f39b-a61a-4a09-a541-16cc1bd53d02 Aether Burst None\n",
173
+ "0 15e83068-6253-4c65-8679-7295f3dc2075 Aether Charge None\n",
174
+ "0 a3c35742-e306-49b6-b042-db4f685c6f86 Aether Flash None\n",
175
+ "0 6697fe5b-90ac-4321-aa2f-cdc6ec283cb4 Aether Mutation None\n",
176
+ "0 61105cb5-d7a1-4021-a006-dd1b947dfa68 Aether Sting None\n",
177
+ "0 ff4297d3-3d96-4bd6-a606-1bdc20a6df2b Aether Storm None\n",
178
+ "0 2fbf95b4-bcf4-4b5e-b5dc-0294f2b48d3e Aether Tide None\n",
179
+ "0 a61ceda1-5993-479e-945f-15753eeb7049 Tainted Aether None\n",
180
+ "0 05a7ca83-e820-433f-b9e9-151e817d3708 Tar Pit Warrior None\n"
181
+ ]
182
+ }
183
+ ],
184
+ "source": [
185
+ "wrongnames = ['Aether Barrier', 'Aether Burst', 'Aether Charge', 'Aether Flash', 'Aether Mutation',\n",
186
+ " 'Aether Sting', 'Aether Storm', 'Aether Tide', 'Tainted Aether', 'Tar Pit Warrior']\n",
187
+ "print('Before:')\n",
188
+ "print(middleschool_df.loc[middleschool_df['name'].isin(wrongnames)])\n",
189
+ "middleschool_df.loc[middleschool_df['name'].isin(wrongnames), 'name_ja'] = None\n",
190
+ "print('After:')\n",
191
+ "print(middleschool_df.loc[middleschool_df['name'].isin(wrongnames)])\n"
192
+ ]
193
+ },
194
  {
195
  "attachments": {},
196
  "cell_type": "markdown",
 
201
  },
202
  {
203
  "cell_type": "code",
204
+ "execution_count": 153,
205
  "metadata": {},
206
  "outputs": [
207
  {
 
214
  "................................................................................\n",
215
  "................................................................................\n",
216
  "................................................................................\n",
217
+ "......................"
218
  ]
219
  }
220
  ],
 
271
  },
272
  {
273
  "cell_type": "code",
274
+ "execution_count": 154,
275
  "metadata": {},
276
  "outputs": [
277
  {
 
335
  },
336
  {
337
  "cell_type": "code",
338
+ "execution_count": 155,
339
  "metadata": {},
340
  "outputs": [],
341
  "source": [
output/middleschool.csv CHANGED
@@ -44,15 +44,15 @@
44
  42,0cf78877-bf08-413c-8ecb-8c3265ac1c4a,Aegis of the Meek,
45
  43,d13aff7c-f0ee-44e2-ae1c-62cd86ad46a6,Aerial Caravan,天駆ける隊商
46
  44,99dcde0b-4f4d-4d7a-89aa-8a89c256e38f,Aesthir Glider,エイスサーの滑空機
47
- 45,0fe602b7-9f88-4d3d-af24-7790df867ed5,Aether Barrier,Æther Barrier
48
- 46,1e33f39b-a61a-4a09-a541-16cc1bd53d02,Aether Burst,Æther Burst
49
- 47,15e83068-6253-4c65-8679-7295f3dc2075,Aether Charge,Æther Charge
50
- 48,a3c35742-e306-49b6-b042-db4f685c6f86,Aether Flash,Æther Flash
51
- 49,6697fe5b-90ac-4321-aa2f-cdc6ec283cb4,Aether Mutation,Aether Mutation
52
  50,2577ef8e-d85e-47af-ac34-629f31992751,Aether Rift,上天の裂け目
53
- 51,61105cb5-d7a1-4021-a006-dd1b947dfa68,Aether Sting,Æther Sting
54
- 52,ff4297d3-3d96-4bd6-a606-1bdc20a6df2b,Aether Storm,Æther Storm
55
- 53,2fbf95b4-bcf4-4b5e-b5dc-0294f2b48d3e,Aether Tide,Æther Tide
56
  54,471f6ad3-cf01-42dd-a519-ea8e13039fea,Afflict,苦悩
57
  55,056a98aa-f3f7-4ac9-9755-3e8a60a59abb,Afiya Grove,アフィヤの樹
58
  56,4c13e2b5-961a-4031-84b1-15bd19b94286,Afterlife,死後の生命
@@ -4891,7 +4891,7 @@
4891
  4889,390cbc61-6291-4e7d-b262-4de57c827702,Tahngarth's Glare,ターンガースのにらみ
4892
  4890,5b0cb089-087d-4b91-9e63-8186dc737a00,Tahngarth's Rage,ターンガースの激怒
4893
  4891,c5b4131e-13aa-4a22-b8f5-e5f9d366cb4f,"Tahngarth, Talruum Hero",タールルームの勇士ターンガース
4894
- 4892,a61ceda1-5993-479e-945f-15753eeb7049,Tainted Aether,Tainted Æther
4895
  4893,439de49b-1091-4688-9ffb-80a025df31c2,Tainted Field,汚れた原野
4896
  4894,0222414f-98b5-458a-a0fd-831a66cd8b07,Tainted Isle,汚れた島
4897
  4895,1a85ba2b-ae10-4917-954a-7709b75a9740,Tainted Pact,汚れた契約
@@ -4915,7 +4915,7 @@
4915
  4913,371c993a-69b8-4a51-af89-982b79940b2d,Taniwha,タニーワ
4916
  4914,960b1251-12af-4766-8df1-bb98e7e967f5,Taoist Hermit,道教の隠者
4917
  4915,e705ec38-b8f7-4f99-8cb9-8448dc3e50ec,Taoist Mystic,道士
4918
- 4916,05a7ca83-e820-433f-b9e9-151e817d3708,Tar Pit Warrior,Tar Pit Warrior
4919
  4917,e96b0560-1d91-48df-b42f-3b7d9c6d94bd,Tariff,関税
4920
  4918,66ae2562-68e9-4c77-ba0a-57f8ff37f656,Tarnished Citadel,色あせた城塞
4921
  4919,b1e1ebc8-cd09-4280-a169-58ab7ece43ff,Tarpan,ターパン
 
44
  42,0cf78877-bf08-413c-8ecb-8c3265ac1c4a,Aegis of the Meek,
45
  43,d13aff7c-f0ee-44e2-ae1c-62cd86ad46a6,Aerial Caravan,天駆ける隊商
46
  44,99dcde0b-4f4d-4d7a-89aa-8a89c256e38f,Aesthir Glider,エイスサーの滑空機
47
+ 45,0fe602b7-9f88-4d3d-af24-7790df867ed5,Aether Barrier,上天の障壁
48
+ 46,1e33f39b-a61a-4a09-a541-16cc1bd53d02,Aether Burst,霊気の噴出
49
+ 47,15e83068-6253-4c65-8679-7295f3dc2075,Aether Charge,霊気の突進
50
+ 48,a3c35742-e306-49b6-b042-db4f685c6f86,Aether Flash,上天の閃光
51
+ 49,6697fe5b-90ac-4321-aa2f-cdc6ec283cb4,Aether Mutation,上天の突然変異
52
  50,2577ef8e-d85e-47af-ac34-629f31992751,Aether Rift,上天の裂け目
53
+ 51,61105cb5-d7a1-4021-a006-dd1b947dfa68,Aether Sting,上天の一刺し
54
+ 52,ff4297d3-3d96-4bd6-a606-1bdc20a6df2b,Aether Storm,上天の嵐
55
+ 53,2fbf95b4-bcf4-4b5e-b5dc-0294f2b48d3e,Aether Tide,上天の潮流
56
  54,471f6ad3-cf01-42dd-a519-ea8e13039fea,Afflict,苦悩
57
  55,056a98aa-f3f7-4ac9-9755-3e8a60a59abb,Afiya Grove,アフィヤの樹
58
  56,4c13e2b5-961a-4031-84b1-15bd19b94286,Afterlife,死後の生命
 
4891
  4889,390cbc61-6291-4e7d-b262-4de57c827702,Tahngarth's Glare,ターンガースのにらみ
4892
  4890,5b0cb089-087d-4b91-9e63-8186dc737a00,Tahngarth's Rage,ターンガースの激怒
4893
  4891,c5b4131e-13aa-4a22-b8f5-e5f9d366cb4f,"Tahngarth, Talruum Hero",タールルームの勇士ターンガース
4894
+ 4892,a61ceda1-5993-479e-945f-15753eeb7049,Tainted Aether,上天のしみ
4895
  4893,439de49b-1091-4688-9ffb-80a025df31c2,Tainted Field,汚れた原野
4896
  4894,0222414f-98b5-458a-a0fd-831a66cd8b07,Tainted Isle,汚れた島
4897
  4895,1a85ba2b-ae10-4917-954a-7709b75a9740,Tainted Pact,汚れた契約
 
4915
  4913,371c993a-69b8-4a51-af89-982b79940b2d,Taniwha,タニーワ
4916
  4914,960b1251-12af-4766-8df1-bb98e7e967f5,Taoist Hermit,道教の隠者
4917
  4915,e705ec38-b8f7-4f99-8cb9-8448dc3e50ec,Taoist Mystic,道士
4918
+ 4916,05a7ca83-e820-433f-b9e9-151e817d3708,Tar Pit Warrior,タール坑の戦士
4919
  4917,e96b0560-1d91-48df-b42f-3b7d9c6d94bd,Tariff,関税
4920
  4918,66ae2562-68e9-4c77-ba0a-57f8ff37f656,Tarnished Citadel,色あせた城塞
4921
  4919,b1e1ebc8-cd09-4280-a169-58ab7ece43ff,Tarpan,ターパン
output/middleschool.json CHANGED
The diff for this file is too large to render. See raw diff