在使用上述函数时,总会提示下面信息
Traceback (most recent call last):
File "pandas\_libs\tslibs\timezones.pyx", line 266, in pandas._libs.tslibs.timezones.get_dst_info
AttributeError: 'NoneType' object has no attribute 'total_seconds'
查了一下,好像是转换时间(datetime.datetime(2023, 10, 3, 10, 54, 38, tzinfo=backports.zoneinfo.ZoneInfo(key='Asia/Shanghai'))没有考虑时区?不会改,请求帮助。