I want to create a dataframe that reads data from another table that constantly updates and select only the rows which contain a product code equal to the one entered by a user
I've already tried
pd.read_sql_query
to create the dataframe
This is the code I've tried and it treated it as a sqlalchemy syntax but I don't know why
product = pd.read_sql_query("SELECT * FROM StoringTF WHERE Product_Code = ?",(Val), c)
where Val is a one item tuple that stores the value of product code entered by user and StoringTF is the main table which I'm trying to extract data from.
I hope you get the idea of what I want to do because there's something wrong with the syntax and that thing makes python expect it to be sqlalchemy. Thanks and hope you can help.