Pandas Datetime Flashcards

1
Q

What are the date methods of dt?

A

year, month, day, quarter, days_in_month

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the time methods of dt?

A

hour, minute, second, microsecond, nanosecond, time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the day/week methods of dt?

A

dayofweek, day_name(), weekday, isoweekday, isocalendar()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the boolean methods of dt?

A

is_year_start, is_year_end, is_leap_year

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the timezone methods of dt?

A

tz_localize(), tz_convert()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What methods of dt can be used when calculating the difference between datetimes?

A

days, seconds, microseconds, total_seconds()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the date extraction method of dt?

A

date

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What method is used to format a datetime with a string?

A

strftime()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the available arguments for pd.Timedelta?

A

days, seconds, microseconds, milliseconds, minutes, hours, weeks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly