Python Keep Rows Based On Condition Meaning