Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.