Loading tutorials
datetime module does. Here you will turn text columns into real datetime values with pd.to_datetime.2 min readpd.to_datetime on a column. It covers what pandas stores when a time is missing or unreadable, and how to find and handle those values.2 min readdatetime64 with pd.to_datetime. Here you will pull calendar parts out of that column and use them for grouping and filtering.2 min readTimedelta is a fixed length of time, such as 2 days and 5 hours. This chapter covers how to create one, where it comes from, and how to use it in calculations. It assumes you can create DataFrames, select columns, filter rows with boolean masks, and convert text to datetimes with `pd.to_datetime2 min read.loc, and convert text with pd.to_datetime. Here you will see how a datetime index changes selection.2 min readDatetimeIndex is from the previous chapter. It covers pd.date_range, the function that generates evenly spaced timestamps. Frequency aliases get a fuller treatment in the next chapter.2 min readDatetimeIndex and call pd.date_range with basic arguments. The code uses pandas 2.2 or later.2 min readDatetimeIndex. It covers three tools that compare each observation with its neighbours in time: shifting, differencing, and rolling windows.2 min readDatetimeIndex and select rows by date, as covered in the indexing chapter. You should also know groupby-style aggregation such as sum and mean.3 min readpd.to_datetime. It also assumes you know what a naive datetime is in Python.3 min readpd.to_datetime, and group with groupby. It also assumes you know the difference between a Timestamp and a Timedelta from earlier chapters.2 min readpd.to_datetime, the .dt accessor, DatetimeIndex selection, and tz_localize and tz_convert. Most date bugs in pandas come from a few causes: text that parsed differently than you meant, values that silently became NaT, and time zones that don't match. This ch2 min read