Python Pandas If Dataframe Is Not Empty Sql W3schools