It is possible to export a pandas dataframe data to elasticsearch using elasticsearch-py. For example, here is some code:
elasticsearch-py
https://www.analyticsvidhya.com/bl
You could use elasticsearch-py or if you won't use elasticsearch-py you may find answer to your question here => index-a-pandas-dataframe-into-elasticsearch-without-elasticsearch-py