Python Check If Variable Is Pandas Permanent