Metadata-Version: 2.1
Name: es-pandas
Version: 0.0.2
Summary: Read, write and update large scale pandas DataFrame with ElasticSearch
Home-page: https://github.com/fuyb1992/es_pandas
Author: Frank
Author-email: fu.frank@foxmail.com
License: UNKNOWN
Description: # es_pandas
        <a href="https://996.icu"><img src="https://img.shields.io/badge/link-996.icu-red.svg" alt="996.icu" /></a> [![LICENSE](https://img.shields.io/badge/license-Anti%20996-blue.svg)](https://github.com/996icu/996.ICU/blob/master/LICENSE) [![PyPi version](https://pypip.in/v/es_pandas/badge.png)](https://crate.io/packages/es_pandas/)
        [![PyPi downloads](https://pypip.in/d/es_pandas/badge.png)](https://crate.io/packages/$es_pandas/)
        
         Read, write and update large scale [pandas](http://pandas.pydata.org/) DataFrame  with [ElasticSearch](https://www.elastic.co/).
         
        
        ## Requirements
        This package should work on python3(>=3.4) and ElasticSearch should be version 6.x or 7.x(>=6.8).
        
        Installation
        The package is hosted on PyPi and can be installed with pip:
        ```
        pip install es_pandas
        ```
        ## Usage
        
        ```
        import time
        
        import pandas as pd
        
        from es_pandas import to_pandas, to_es
        
        
        # Information of es cluseter
        es_host = 'localhost:9200'
        index = 'demo'
        
        # Example data frame
        df = pd.DataFrame({'Alpha': [chr(i) for i in range(97, 128)], 
                            'Num': [x for x in range(31)], 
                            'Date': pd.date_range(start='2019/01/01', end='2019/01/31')})
        
        # Example of write data to es, auto create and put template to es if template does not exits
        to_es(df, es_host, index)
        
        time.sleep(10)
        # Example of read data from es
        df = to_pandas(es_host, index)
        print(df.head())
        ```
        
        ## License
        (c) 2019 Frank
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
