TypeError: Invalid comparison between dtype=datetime64[ns] and str

df[‘日期’].between(‘2023-06-01’, ‘2023-06-31’)
6月没有31号

你可能感兴趣的:(python)