Loading tutorials
pd.date_range to build a DatetimeIndex. It covers shift() as a lag and the model behind it. Leads, NaN handling, diff() and the other topics each have their own chapter.3 min readDatetimeIndex and that you know what shift(1) does. A positive periods value gives a lag. A negative value gives a lead.3 min readDatetimeIndex and that you know what shift(1) does from the previous chapters. Here you will see why shifting creates NaN values, what that does to your data types, and when filling them is a good idea.3 min readDatetimeIndex and that you know what shift(1) does to values and to the first row. Here you will use that shifted copy to measure change from one period to the next.2 min readDatetimeIndex and pd.date_range work. It covers the two ways shift() can move data and when each one is the right choice.3 min readDatetimeIndex, and how shift(periods) works. If any of that is unfamiliar, review the earlier chapters first.3 min readshift() works on a single Series, including the NaN it creates at the edge. You should also be comfortable with groupby() on a DataFrame.2 min readDatetimeIndex with pd.date_range. It also assumes you have seen shift(), groupby().shift() and asfreq() from earlier chapters.3 min readDatetimeIndex, and have used shift() for lags and leads, as covered in the earlier chapters.2 min readshift() with positive periods, NaN at the edges, groupby().shift(), and the idea of lookahead leakage from the previous chapter. You should also know basic rolling() calls such as rolling(window=3).mean().2 min read