Alejandro Cremades commited on
Commit
e67c590
β€’
1 Parent(s): b1e9ade

Fixed "mv" column name

Browse files
list_scripts/8_add_other_fields.py CHANGED
@@ -6,7 +6,7 @@ def add_other_fields(row: pd.DataFrame) -> pd.DataFrame:
6
  print(f"{row['name']} | {row['oracle_id']}")
7
  for index, card in enumerate(cards):
8
  if card["identifiers"]["scryfallOracleId"] == row["oracle_id"]:
9
- row["mw"] = card["manaValue"]
10
  row["rarity"] = card["rarity"]
11
  row["text"] = card["text"] if "text" in card else None
12
  row["type"] = card["type"]
 
6
  print(f"{row['name']} | {row['oracle_id']}")
7
  for index, card in enumerate(cards):
8
  if card["identifiers"]["scryfallOracleId"] == row["oracle_id"]:
9
+ row["mv"] = card["manaValue"]
10
  row["rarity"] = card["rarity"]
11
  row["text"] = card["text"] if "text" in card else None
12
  row["type"] = card["type"]
output/middleschool_extra_fields.csv CHANGED
@@ -1,4 +1,4 @@
1
- ,Unnamed: 0,oracle_id,name,name_ja,mw,rarity,text,type,power,toughness,w,u,b,r,g,c
2
  0,0,8adbba6e-03ef-4278-aec5-8a4496b377a8,Abandon Hope,ζ–­εΏ΅,2,uncommon,"As an additional cost to cast this spell, discard X cards.
3
  Look at target opponent's hand and choose X cards from it. That player discards those cards.",Sorcery,,,False,False,True,False,False,False
4
  1,1,5a70ccfa-d12d-4e62-a1a4-f05cda2fd442,Abandoned Outpost,θ¦‹ζ¨γ¦γ‚‰γ‚ŒγŸε‰ε“¨εœ°,0,common,"Abandoned Outpost enters the battlefield tapped.
 
1
+ ,Unnamed: 0,oracle_id,name,name_ja,mv,rarity,text,type,power,toughness,w,u,b,r,g,c
2
  0,0,8adbba6e-03ef-4278-aec5-8a4496b377a8,Abandon Hope,ζ–­εΏ΅,2,uncommon,"As an additional cost to cast this spell, discard X cards.
3
  Look at target opponent's hand and choose X cards from it. That player discards those cards.",Sorcery,,,False,False,True,False,False,False
4
  1,1,5a70ccfa-d12d-4e62-a1a4-f05cda2fd442,Abandoned Outpost,θ¦‹ζ¨γ¦γ‚‰γ‚ŒγŸε‰ε“¨εœ°,0,common,"Abandoned Outpost enters the battlefield tapped.
output/middleschool_extra_fields.json CHANGED
The diff for this file is too large to render. See raw diff