JayDeBe is all set up and querying Redshift is working correctly, but I need to find a way to return the column names which will be helpful when converting the list into a Pandas dataframe
This is the code I'm using to execute the query:
curs = conn.cursor()
curs.execute("select u.customer_name, u.status, from table.users u limit 10")
result = curs.fetchall()
Depending on the query, the column names will be different so a set format wouldn't work in this case
I have google searched and have tried various suggestions but none accomplish the task.
Any assistance on how I can return the column names would be appreciated, many thanks!