import pandas as pd
import MySQLdb
import csv

from config import cur
cursor = cur.cursor ()
cursor.execute(f'Select aoi,timeInterval,assesment from key_event_archive ')
data = cursor.fetchall()

df = pd.DataFrame(data,columns=['Aoi','Time Interval','Assesment'])
df.to_csv (r'archive-info.csv', index = False) # place 'r' before the path name to avoid any errors in the path
67e779817f3b07550fdbb8576e36d4a402b4e943
<mask token>

<mask token>
cursor.execute(f'Select aoi,timeInterval,assesment from key_event_archive ')
<mask token>
df.to_csv('archive-info.csv', index=False)

<mask token>
cursor = cur.cursor()
cursor.execute(f'Select aoi,timeInterval,assesment from key_event_archive ')
data = cursor.fetchall()
df = pd.DataFrame(data, columns=['Aoi', 'Time Interval', 'Assesment'])
df.to_csv('archive-info.csv', index=False)

import pandas as pd
import MySQLdb
import csv
from config import cur
cursor = cur.cursor()
cursor.execute(f'Select aoi,timeInterval,assesment from key_event_archive ')
data = cursor.fetchall()
df = pd.DataFrame(data, columns=['Aoi', 'Time Interval', 'Assesment'])
df.to_csv('archive-info.csv', index=False)

import pandas as pd
import MySQLdb
import csv

from config import cur
cursor = cur.cursor ()
cursor.execute(f'Select aoi,timeInterval,assesment from key_event_archive ')
data = cursor.fetchall()

df = pd.DataFrame(data,columns=['Aoi','Time Interval','Assesment'])
df.to_csv (r'archive-info.csv', index = False) # place 'r' before the path name to avoid any errors in the path