Using both pandas.read_sql as well as pandas.read_sql_table, I keep getting the entire table back with all the column names in lowercase. Is there anyway around this?
I wanted to do some transformations on the data then replace the table in the DB, but it's a pain if doing so changes all the column names to lowercase.
#both of these produce the same lowercase columns
sql = 'SELECT * from "DB"."SCHEMA"."'+"tablename"+'"; '
df = pd.read_sql(
sql,
con=engine
)
df = pd.read_sql_table(
"tablename",
con=engine
)
