Ask Your Question
2

What does the error "AttributeError: Can only use .dt accessor with datetimelike values" mean?

asked 2023-01-04 11:00:00 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-06-26 01:00:00 +0000

david gravatar image

The error "AttributeError: Can only use .dt accessor with datetimelike values" means that you are trying to use the ".dt" accessor on a non-datetime object. This error is usually encountered when you are trying to perform datetime operations on an object that is not a datetime object, such as a string or list. To resolve this error, ensure that the object you are using the ".dt" accessor on is a valid datetime object.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-01-04 11:00:00 +0000

Seen: 9 times

Last updated: Jun 26 '21