With header information in csv file, city can be grabbed as:
city = row[\'city\']
Now how to assume that csv file does not have headers, th
I'm using a pandas dataframe object:
df=pd.read_sql(sql_query,data_connection) df.to_csv(filename, header=False, index=False)
Don't know if that is the most Pythonic approach, but it gets the job done.