# Issues Elastic using Python as a client

**URL:** <https://discuss.elastic.co/t/issues-elastic-using-python-as-a-client/302149>\
**Category:** Elasticsearch\
**Created:** [April 11, 2022, 7:01pm UTC](https://discuss.elastic.co/t/issues-elastic-using-python-as-a-client/302149 "2022-04-11T19:01:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Frida\_Rodriguez\_Esco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/frida_rodriguez_esco/32/104257_2.png) [@Frida\_Rodriguez\_Esco](https://discuss.elastic.co/u/Frida_Rodriguez_Esco)\
**Post date:** [April 11, 2022, 7:01pm UTC](https://discuss.elastic.co/t/issues-elastic-using-python-as-a-client/302149/1 "2022-04-11T19:01:11Z")

</div>

Hey everybody,

I have tried to carry out this tutorial:

> **[qs\_ledger/apple\_health at master · markwk/qs\_ledger](https://github.com/markwk/qs_ledger/tree/master/apple_health)**
>
> master/apple\_health

using apple health data from my iPhone, but I have failed every time when it comes to importing mapped data to Elastic.

Import is just fine, but the data is not mapped as it is supposed to. Not sure if I am having trouble specifically with:

1. The `es.indices.put_mapping` function?, which doesn't map my data frame correctly.
2. Elastic doesn't seem to recognize dates as dates!
3. I cannot change the mapping manually in Elastic.

Has anyone else had issues mapping data in Jupyter and then importing it to Kibana?  
Thank you so much in advance!

---

<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:** [May 9, 2022, 7:01pm UTC](https://discuss.elastic.co/t/issues-elastic-using-python-as-a-client/302149/2 "2022-05-09T19:01:49Z")

</div>

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