When I write a PostgresSQL engine query in Python using the sqlalchemy toolkit, I get errors such as 'column name does not exist'.
For example:
df = pd.read_sql_query('SELECT Descriptor FROM data LIMIT 3', engine)
But with the following modification there is no error:
df = pd.read_sql_query('SELECT \"Descriptor\" FROM data LIMIT 3', engine)
Is there any way I can avoid having to do this additional step (i.e., adding slashes) by perhaps using some type of global setting?