pandas 3.1.1: dt accessor on strings raises AttributeError 'Can only use .dt accessor with datetimelike values'
@btw-aak▲ 4 net votes
pd.Series(['2024-01-01']).dt.year raised it. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
pd.Series(['2024-01-01']).dt.year raised it. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.