(s)
return (
        all(hasattr(typ, name) for name in ("groupby", "head", "mean"))
        and all(hasattr(s, name) for name in ("dtype", "name"))
        and "index" not in typ.__name__.lower()
    )
Looks like a Pandas Series. ** Borrowed from dask.dataframe.utils **
Looks like a Pandas Series. ** Borrowed from dask.dataframe.utils **
Looks like a Pandas Series . ** Borrowed from dask . dataframe . utils **
def is_series_like(s):
    """ Looks like a Pandas Series. ** Borrowed from dask.dataframe.utils ** """
    typ = type(s)
    return (
        all(hasattr(typ, name) for name in ("groupby", "head", "mean"))
        and all(hasattr(s, name) for name in ("dtype", "name"))
        and "index" not in typ.__name__.lower()
    )
def is_series_like ( s ) : typ = type ( s ) return ( all ( hasattr ( typ , name ) for name in ( "groupby" , "head" , "mean" ) ) and all ( hasattr ( s , name ) for name in ( "dtype" , "name" ) ) and "index" not in typ . __name__ . lower ( ) )