mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-09-22 04:50:46 +02:00
Adjusted logic to set lands to fill all empty cells in colorIdentity column to be 'colorless' like was done with other cards
This commit is contained in:
parent
d44d014f22
commit
15ce426ad4
1 changed files with 1 additions and 0 deletions
1
setup.py
1
setup.py
|
@ -69,6 +69,7 @@ def set_lands():
|
||||||
df = pd.read_csv(f'{csv_directory}/cards.csv', low_memory=False)
|
df = pd.read_csv(f'{csv_directory}/cards.csv', low_memory=False)
|
||||||
|
|
||||||
legendary_options = ['Land']
|
legendary_options = ['Land']
|
||||||
|
df['colorIdentity'] = df['colorIdentity'].fillna('Colorless')
|
||||||
filtered_df = df[df['type'].str.contains('|'.join(legendary_options))]
|
filtered_df = df[df['type'].str.contains('|'.join(legendary_options))]
|
||||||
"""
|
"""
|
||||||
Save the filtered dataframe to a new csv file, and narrow down/rearranges the columns it
|
Save the filtered dataframe to a new csv file, and narrow down/rearranges the columns it
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue