I have a DataFrame of dates and values (and in the below code, I might not have parsed the dates correctly).
import pandas as pd
d = {'date': pd.Series(['2010-01-01', '2011-01-01',
'2012-01-01', '2012-07-01',
'2013-01-01']),
'value': pd.Series([0, 2, 1, 4, 3])}
df = pd.DataFrame(d)
I'd like a function that can filter this DataFrame to only give me the rows that are "the biggest value I've seen so far" (with respect to dates). In this case, I would end up with 3 rows (the current rows 0, 1, and 3 with the values 0, 2, and 4).