def create_index(index_name, **kwargs):
    """
    Parameters
    ----------
    index_name : str
        Name of the index to be created
    **kwargs
        Arguments to pass to Elasticsearch instance.

    Returns
    -------

    Index
    """
    es = elasticsearch.Elasticsearch(**kwargs)
    es.indices.create(index=index_name, body=mapping)
    return connect(index_name, **kwargs)
Parameters
    ----------
    index_name : str
        Name of the index to be created
    **kwargs
        Arguments to pass to Elasticsearch instance.

    Returns
    -------

    Index