I\'m using f notation in a pandas sql query on a postgres database. The following works fine:
areas = pd.read_sql_query(f"SELECT * FROM Areas WHERE dwelling_