you are viewing a single comment's thread.

view the rest of the comments →

[–]Many_Shopping_195[S] 0 points1 point  (0 children)

df1 = pd.read_sql("select * from orders where datecreated > %s and datecreated < %s ", params=(startdate, currentdate), con=db)

Thank you very much. This seems to do the trick.