I'm pulling results from Snowflake using the code below. The SQL statement returns fine in Snowflake Web UI but when pulled in Python I get a ValueError: Found non-unique column index
If this happened in my Pandas workflow, I would reset_index() but, as its happening at the point of the dataframe being created I'm unsure how to fix this.
As an interim, I'm exporting a csv from Snowflake and importing into Python which I hate doing as I'm refreshing multiple times a week.
cur.execute(sql)
df = cur.fetch_pandas_all()