Pandas Datetime Flashcards
What are the date methods of dt?
year, month, day, quarter, days_in_month
What are the time methods of dt?
hour, minute, second, microsecond, nanosecond, time
What are the day/week methods of dt?
dayofweek, day_name(), weekday, isoweekday, isocalendar()
What are the boolean methods of dt?
is_year_start, is_year_end, is_leap_year
What are the timezone methods of dt?
tz_localize(), tz_convert()
What methods of dt can be used when calculating the difference between datetimes?
days, seconds, microseconds, total_seconds()
What is the date extraction method of dt?
date
What method is used to format a datetime with a string?
strftime()
What are the available arguments for pd.Timedelta?
days, seconds, microseconds, milliseconds, minutes, hours, weeks