-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
We should avoid writing the index (row numbers) when creating the ticket files. The row numbers aren't helpful, and make the file more difficult to maintain and consume.
This can be done by providing index=False
to the invocations of to_csv
here:
openelections-data-wv/scripts/tickets.py
Lines 278 to 284 in cd93ec9
def save(self, df: pd.DataFrame, change_df: pd.DataFrame) -> None: | |
''' | |
Saves data to file as CSVs. | |
''' | |
filename = f'{self.year}/{self.state}__{self.year}__tickets.csv' | |
df.to_csv(filename) | |
change_df.to_csv(f'{self.year}/{self.state}__{self.year}__ticket__changes.csv') |
This is related to openelections/openelections-data-sd#31.
Metadata
Metadata
Assignees
Labels
No labels