Skip to content

Commit

Permalink
write csv from polars dataframe
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenglimEar committed Jul 3, 2024
1 parent c83b157 commit fb4e811
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions download/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def main():
'XRef_Match',
]).sample(n=20))

elections.df.to_csv(f'{csv_data_dir_path}/elections.csv', index=False)
committees.df.to_csv(f'{csv_data_dir_path}/committees.csv', index=False)
a_contributions.df.to_csv(f'{csv_data_dir_path}/a_contributions.csv', index=False)
elections.df.write_csv(f'{csv_data_dir_path}/elections.csv')
committees.df.write_csv(f'{csv_data_dir_path}/committees.csv')
a_contributions.df.write_csv(f'{csv_data_dir_path}/a_contributions.csv')

if __name__ == '__main__':
main()

0 comments on commit fb4e811

Please sign in to comment.