10: FutureWarning: last is deprecated and will be removed in a future version. Please create a mask and filter using `.loc` instead
print(df.last('5D'))
registered
2021-01-27 8
2021-01-28 5
2021-01-29 3
2021-01-30 4
2021-01-31 5