如何使用特定日期的熊猫过滤来读取 mysql 数据

How to read mysql data using panda filtering by a specific date

我正在尝试将存储在 MySQL 中的数据库读取到 python。

我了解如何连接和读取整个数据,但我在如何从特定日期获取数据时遇到问题。 比如如何做 SELECT * FROM country WHERE TIMESTAMP(date)= '2022-02-19'

我可以得到整个 table 执行以下操作

engine = create_engine(mysql connection here)
tables = ['country','state','county']
df = pd.read_sql('SELECT * FROM '+tables[0], con=engine)

or 

df = pd.read_sql_table(tables[0], engine)

但现在我如何使用日期进行过滤?假设只带上 2022-02-19

的所有内容
df = pd.read_sql(f"SELECT * FROM {tables[0]} WHERE date = '2022-02-19'", con=engine)