LernerPython blog, from Reuven... Note

LernerPython blog, from Reuven Lerner: Pandas Grouper NaNs: Why outlier dates create empty groups

Got NaNs when using Grouper on a Python Pandas data frame?groupby+Grouper chops up the datetime values, from the earliest to the latest, by the specified granularity.If even one datetime is super early/late, you’ll get tons of NaNs.dropna is often helpful here.
CdXz5zHNQW_VXiJkLdiA4.png