Skip to content
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

when i tried to predict a time series, i got this error #260

Closed
zhuzhuyan93 opened this issue Jun 9, 2023 · 2 comments
Closed

when i tried to predict a time series, i got this error #260

zhuzhuyan93 opened this issue Jun 9, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@zhuzhuyan93
Copy link

🐛 Describe the bug

when i tried to predict a time series, i got this error:

pandas_ai(df_t, prompt="时间序列拟合date和value, 给出拟合值")

in which df_t, cols: [date, value]
error:

Unfortunately, I was not able to answer your question, because of the following error:

Generated code includes import of datetime which is not in whitelist.
@gventuri gventuri added the bug Something isn't working label Jun 9, 2023
@jonbiemond
Copy link
Contributor

I guess we should add a constant for WHITELISTED_STANDARD_LIBRARIES.

@gventuri
Copy link
Collaborator

@zhuzhuyan93, you should now be able to use it with version 0.5.1! Let me know if it works for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants