Akira Renbokoji
12/01/2022, 2:03 AMdf = pd.read_sql(some_query, my_redshift_connection)
I would then get back a DataFrame with column names.
Now using
my_data = context.resources.redshift.execute_query(some_query, fetch_results=True)
I have to do something like
df = pd.DataFrame(my_data, columns=['my_first_column', 'second_column', 'third'])
I am looking for a way not to declare column names and just get it off my query or DataFrame creation.Zach P
12/01/2022, 2:14 AMAkira Renbokoji
12/02/2022, 5:32 AMchris
12/02/2022, 6:04 PMAkira Renbokoji
12/02/2022, 6:10 PM