How to export pandas data to elasticsearch?
问题 It is possible to export a pandas dataframe data to elasticsearch using elasticsearch-py . For example, here is some code: https://www.analyticsvidhya.com/blog/2017/05/beginners-guide-to-data-exploration-using-elastic-search-and-kibana/ There are a lot of similar methods like to_excel , to_csv , to_sql . Is there a to_elastic method? If no, where should I request it? 回答1: The following script works for localhost: import numpy as np import pandas as pd df = pd.DataFrame(np.random.randint(0,100