I am a bit new to programming in general, and want to use python to create some conditional logic to parse through a dataframe, keeping only the entries and values that we need