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

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.

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