I have a dataframe like this,
df = pd.DataFrame({'numb': [2,4,6,2,4,9]})
print(df)
numb
0 2
1 4
2 6
3 2
4 4
5 9
I would like to count the number of rows where numb is lesser than the numb of the previous, like
numb lesser_count
0 2 0
1 4 0
2 6 0
3 2 2
4 4 1
5 9 0
I came across a similar example but not sure how to take the count.