invest python pandas dataframe filter investment Klipek (1453)