docs/v3/migration-troubleshooting.mdx
Problem: ModuleNotFoundError: No module named 'pandasai.llm'
Solution: Install the appropriate LLM extension
pip install pandasai-litellm
Problem: Skills not being recognized
Solution: Use the new @pai.skill() decorator
# v2
from pandasai.skills import skill
@skill
def my_skill():
pass
# v3
import pandasai as pai
@pai.skill()
def my_skill():
"doc string"
pass
Problem: Configuration settings not taking effect
Solution: Use global configuration
# v2
df = SmartDataframe(data, config=config)
# v3
pai.config.set(config)
df = pai.DataFrame(data)
Problem: AttributeError: 'Agent' object has no attribute 'clarification_questions' (or rephrase_query, explain)
Solution: These methods have been removed in v3. Use alternatives:
# v2 - These methods are removed
agent.clarification_questions('What is the GDP?')
agent.rephrase_query('What is the GDP?')
agent.explain()
# v3 - Use these instead
response = agent.chat('What is the GDP?')
follow_up = agent.follow_up('What about last year?') # Maintains context
If you need help with migration or have questions, join our Discord community where you can get support from other PandasAI users and contributors.
Enterprise customers should contact their dedicated account manager via Slack or through the dedicated support channel selected at purchase. Enterprise support includes priority assistance with migration, custom implementation guidance, and direct access to the engineering team.