Export the new results to a second csv file

To export the new results to a second CSV file, you can use the pandas library in Python. Here's an example:

import pandas as pd

# assume 'new_results' is a pandas DataFrame containing the new results
new_results.to_csv('new_results.csv', index=False)

This will export the new_results DataFrame to a new CSV file named new_results.csv in the current working directory. The index=False parameter tells pandas not to include the row index in the CSV file.

If you want to append the new results to an existing CSV file instead of overwriting it, you can use the mode parameter:

new_results.to_csv('existing_results.csv', mode='a', header=False, index=False)

This will append the new results to the end of the existing existing_results.csv file, without adding a header row.

Make sure to replace new_results with the actual name of your DataFrame, and new_results.csv or existing_results.csv with the desired file names.