def is_nested_object(obj):
if isinstance(obj, ABCSeries) and is_object_dtype(obj):<EOL><INDENT>if any(isinstance(v, ABCSeries) for v in obj.values):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
return a boolean if we have a nested object, e.g. a Series with 1 or
more Series elements

This may not be necessarily be performant.