有一个数据框“ df”
times_utc
2013-01-16 09:04:37.0
我正在尝试将其转换为太平洋时区
df['times_utc'] = df['times_utc'].dt.tz_convert('US/Pacific')
它给了我这个错误信息:
raise AttributeError("Can only use .dt accessor with datetimelike "
AttributeError: Can only use .dt accessor with datetimelike values
有什么想法吗?谢谢!