python pandas dataframe check column is empty code example Example: check empty dataframe df.empty == True