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