invest python pandas dataframe filter investment Klipler (1453)