def check_for_nonnumeric(pd_series=None): if pd.to_numeric(pd_series, errors='coerce').isna().sum() == 0: return 0 else: return 1