# "msg": "Value of unknown type: \<class 'pandas.core.frame.DataFrame'\>,

**URL:** <https://forum.ansible.com/t/msg-value-of-unknown-type-class-pandas-core-frame-dataframe/24765>\
**Category:** Ansible Developer\
**Created:** [June 19, 2017, 6:17pm UTC](https://forum.ansible.com/t/msg-value-of-unknown-type-class-pandas-core-frame-dataframe/24765 "2017-06-19T18:17:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Durgaprasad\_Ala](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Durgaprasad\_Ala](https://forum.ansible.com/u/Durgaprasad_Ala)\
**Post date:** [June 19, 2017, 6:17pm UTC](https://forum.ansible.com/t/msg-value-of-unknown-type-class-pandas-core-frame-dataframe/24765/1 "2017-06-19T18:17:48Z")

</div>

I am getting this error while trying to get the csv values.

fatal: [xxxxxxxxxx → localhost]: FAILED! =\> {“changed”: false, “failed”: true, “msg”: "Value of unknown type: \<class ‘pandas.core.frame.DataFrame’\>,

Snippet of the ansible module

import pandas as pd

df = pd.read\_csv(‘/tmp/1.csv’, header=None)  
module.exit\_json(changed=False, attributes=df.head())

I am trying to get the csv values actually, it was working fine with Ansible 2.0 , it is giving the error with 2.3

PS: I tried tablib python and getting almost the same error.

---

<div class="post-metadata">

**Author:** ![Durgaprasad\_Ala](https://avatars.discourse-cdn.com/v4/letter/d/2bfe46/32.png) [@Durgaprasad\_Ala](https://forum.ansible.com/u/Durgaprasad_Ala)\
**Post date:** [June 19, 2017, 11:02pm UTC](https://forum.ansible.com/t/msg-value-of-unknown-type-class-pandas-core-frame-dataframe/24765/2 "2017-06-19T23:02:22Z")

</div>

Never mind, it was a headers issue, got it fixed.
