How to use the pandasticsearch.dataframe.DataFrame.from_es function in pandasticsearch

To help you get started, we’ve selected a few pandasticsearch examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github onesuper / pandasticsearch / tests / test_dataframe.py View on Github external
},
                    "b": {
                        "type": "integer"
                    },
                    "c": {"properties": {
                        "d": {"type": "keyword", "ignore_above": 1024},
                        "e": {"type": "keyword", "ignore_above": 1024}
                    }
                    }
                }
            }
        }
    }
    response.read.return_value = json.dumps(dic).encode("utf-8")
    mock_urlopen.return_value = response
    return DataFrame.from_es(url="http://localhost:9200", index='index', compat=7)
github onesuper / pandasticsearch / tests / test_dataframe.py View on Github external
"b": {
                            "type": "integer"
                        },
                        "c": {"properties": {
                            "d": {"type": "keyword", "ignore_above": 1024},
                            "e": {"type": "keyword", "ignore_above": 1024}
                        }
                        }
                    }
                }
            }
        }
    }
    response.read.return_value = json.dumps(dic).encode("utf-8")
    mock_urlopen.return_value = response
    return DataFrame.from_es(url="http://localhost:9200", index='index', doc_type='doc_type')