10: FutureWarning: first is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead
print(df.first('5D'))
registered
2021-01-01 5
2021-01-02 4
2021-01-03 3
2021-01-04 4
2021-01-05 3