Converting Smartdataframe to dict #628
Replies: 3 comments 3 replies
-
Error i get is C:\Users\sb3249832\Desktop\fapi\Lib\site-packages\pandasai\smart_dataframe\abstract_df.py", line 156, in to_dict\n raise NotImplementedError\nNotImplementedError\n'} |
Beta Was this translation helpful? Give feedback.
-
Do you mind providing a minimal reproducible example? |
Beta Was this translation helpful? Give feedback.
-
question='show the last 2 rows of the data' Converting to dict is throwing an NotImplementedError. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am using PandasAI version - 1.0.8.
While i am converting a response which is of type SmartDataframe to dict. Its generating an error as below in Visual Studio Code.
'answer': 'Sorry, something went wrong. Try again', 'Error type': 'NotImplementedError'
However the same code is working in Google Colab.
Can someone please help to resolve this issue.
I have tried converting from SmartDataframe to Dataframe and then converting to dict. However in the process, column names are getting lost and is appearing as 0,1,2,... etc. Tried various possibilities but not working.
dict_error.docx
Beta Was this translation helpful? Give feedback.
All reactions