How To Query A Dataframe In Python Create