-
Can I extracted the last code generated and store it in a variable?
But now there is no such option. I have tried adding this code in pandasai/init.py:
This does give me the result, but is there an inbuilt function for this? I'm not sure if editing the library code is the best option for me. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@notmanas thanks a lot for reporting. Although we try to maintain backward compatibility, the Those classes both support Let me know if that helps! |
Beta Was this translation helpful? Give feedback.
@notmanas thanks a lot for reporting. Although we try to maintain backward compatibility, the
PandasAI
class will be deprecated soon. We now use eitherSmartDataframe
orSmartDatalake
. Check out the docs: https://docs.pandas-ai.com/en/latest/Those classes both support
last_generated_code
.Let me know if that helps!