def _any_pandas_objects(terms):
 return any((isinstance(term.value, pd.core.generic.PandasObject) for term in terms))

def _any_pandas_objects ( terms ) : return any ( ( isinstance ( term . value , pd . core . generic . PandasObject ) for term in terms ) )
check a sequence of terms for instances of pandasobject .