I would like to use date as a variable in pandas.io.sql.read_sql('SELECT* FROM database as a where a.date=date). Is there a way?
pandas
Variables can be passed to the params
argument of pandas.read_sql
.
See the official document for more information.
https://pandas.pydata.org/docs/reference/api/pandas.read_sql.html?highlight=read_sql#pandas.read_sql
© 2024 OneMinuteCode. All rights reserved.