The .dt accessor is a property of pandas DataFrame and Series objects that enables access to several datetime properties and methods.