I am working on a proof of concept, using Python and Duckdb.
I am wanting to use a variable\parameter inside the Duckdb SELECT statement.
For example,
y = 2
dk.query("SELECT * FROM DF WHERE x > y").to_df()
How can y be properly referenced?
I was not able to find any documentation\reference @ web.
dk.query(f"SELECT * FROM DF WHERE x > {y}").to_df()