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:
mwisnowski 2024-12-20 11:51:24 -08:00
parent d44d014f22
commit 15ce426ad4

View file

@ -69,6 +69,7 @@ def set_lands():
df = pd.read_csv(f'{csv_directory}/cards.csv', low_memory=False)
legendary_options = ['Land']
df['colorIdentity'] = df['colorIdentity'].fillna('Colorless')
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