-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use pandas instead of RestrictedPandas #1470
Comments
Hey @XJTU-JP! I'm here to help you with that. Let's tackle this together! To use regular pandas instead of RestrictedPandas in the pandas-ai library, you can configure the library to use the regular pandas engine. You can do this by using the from pandasai.engine import set_pd_engine
set_pd_engine("pandas") This will ensure that the library uses the standard pandas package instead of RestrictedPandas [1][2]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
This solution solved my problem. In addition
|
i got the same error ‘Timestamp’ is not allowed in RestrictedPandas with pandasai 2.4.0 |
@XJTU-JP config={"custom_whitelisted_dependencies": ["timedelta"] |
System Info
pandas 1.5.3
pandasai 2.4.0
🐛 Describe the bug
I want the agent to use panda instead of RestrictedPandas. What should be done
raise AttributeError(f"'{name}' is not allowed in RestrictedPandas")
AttributeError: 'DateOffset' is not allowed in RestrictedPandas
The text was updated successfully, but these errors were encountered: