python elasticsearch convert to dataframe code example
Example: make pandas dataframe from elasticsearch
# Create a basic ES client
client = Elasticsearch(['url'])
# Search
search = Search(using=client)
results = search.execute()
search_dict = results.hits.hits
results_df = pd.DataFrame(search_dict)