~/talk

Times and dates in Pandas

Talkat PyCon US 2024 · 2024-05-15..05-23· [data-visualization, web-platform]
slides:none on file

Pandas converts messy timestamp text into real datetime64 and timedelta64 types using pd.to_datetime, and can parse on import with read_csv parse_dates or the faster pyarrow engine; timezone work uses tz_localize and tz_convert. The talk demos dt accessor, grouping and pivoting, Grouper and resample, and building a trip_time column by subtracting dropoff minus pickup. Surprising concrete results include four trips longer than three days and one costing $4,268 for about 1.5 miles.

AI-written summary · about

  1. 0:00Introduction
  2. 1:05Time and datetime objects
  3. 5:00CSV with datetime columns
  4. 8:09Parsing datetime strings
  5. 10:15Aggregating datetime values
  6. 13:03DT accessor components
  7. 15:28Trip durations with Time Delta
  8. 19:00Time zones in datetime
  9. 21:48Group by datetime
  10. 24:59Pivot tables with datetime
  11. 26:46Chronological grouping
  12. 28:12Datetime to index
  13. 32:44Resampling time series
  14. 35:16Datetime functionality summary
  15. 36:01Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.