How To Create Dataframe In Python Using And In If Statement