# Eland error after upgrading Elastic

**URL:** <https://discuss.elastic.co/t/eland-error-after-upgrading-elastic/310858>\
**Category:** Elasticsearch\
**Tags:** language-clients\
**Created:** [July 28, 2022, 11:25am UTC](https://discuss.elastic.co/t/eland-error-after-upgrading-elastic/310858 "2022-07-28T11:25:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mruiter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mruiter/32/97482_2.png) [@mruiter](https://discuss.elastic.co/u/mruiter)\
**Post date:** [July 28, 2022, 11:25am UTC](https://discuss.elastic.co/t/eland-error-after-upgrading-elastic/310858/1 "2022-07-28T11:25:48Z")

</div>

After upgrading ElasticSearch from version 8.3.1 to 8.3.2 none of my Eland/Pandas code seems to work anymore. The thing that seems to cause the error is converting the Eland object to Pandas using .to\_pandas()

```
import eland as ed
from elasticsearch import Elasticsearch

if __name__ == ' __main__':

  username = "..."
  password = "..."

  es = Elasticsearch(hosts='http://{}:{}@localhost:9200'.format(username, password), request_timeout=30)
  df = ed.DataFrame(es_client=es, es_index_pattern='example_index').to_pandas()

```

I am receiving the following error message:

```
/Users/michael/Documents/Elastic-Code/.venv/lib/python3.9/site-packages/eland/query_compiler.py:283: PerformanceWarning: DataFrame is highly fragmented. This is usually the result of calling `frame.insert` many times, which has poor performance. Consider joining all columns at once using pd.concat(axis=1) instead. To get a de-fragmented frame, use `newframe = frame.copy()`
  df[missing] = pd.Series(dtype=pd_dtype)

```

Any form of help would be highly appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 25, 2022, 11:26am UTC](https://discuss.elastic.co/t/eland-error-after-upgrading-elastic/310858/2 "2022-08-25T11:26:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
