Comments (8)
@ambujpawar maybe we could also accept a list in the first param and then conditionally run the workflow on only 1 df vs multiple dfs.
Something like this:
pandas_ai.run(df1, prompt='Which are the 5 happiest countries?')
pandas_ai.run([df1, df2], prompt='Which are the 5 happiest countries?')
What do you think?
from pandas-ai.
The current version does not understand groupby-related operation, which might also be good to have. For example, if you add a continent column to the example and ask which countries are happiest in each continent, it will give random answer.
from pandas-ai.
@shuangquanhuang super nice addition, will work on it!
from pandas-ai.
@mzy2240 @HenriqueAJNB I've created one (#127 )
from pandas-ai.
Hey, @gventuri I can work on it. However, before starting with the issue. I have a few questions:
- How do you propose to handle this? Because currently the user queries like
pandas_ai.run(df, prompt='Which are the 5 happiest countries?')
- Should it be handle datafranes like
pandas_ai.run(df1, df2, prompt='Merge the two databases?')
Or do you have something else in mind?
from pandas-ai.
I dont have a strong preference for any. But out of the these two options, I prefer:
pandas_ai.run(df1, df2, prompt='Which are the 5 happiest countries?')
Because to be it seems to be more "easy" for the user as well as more intuitive. So shall I go ahead with that?
from pandas-ai.
This groupby tasks should be another issue. Can you create that @mzy2240?
from pandas-ai.
Feature added with this commit: be4c717
Closing
from pandas-ai.
Related Issues (20)
- The graph getting generated in Jupyter is fine, but the image getting saved as a .png file is getting distorted where portions of the image from the left & right are not present and a distorted image is getting saved HOT 1
- JSON error on any prompt passed. Expecting value: line 1 column 1 (char 0). Set up using Ollama (llama3) on local with LangChain.
- enforce_privacy dose not work? HOT 1
- Clarification question and explain to support replying in the same language as query.
- Custom head not working HOT 1
- Gradio support
- Column MultiIndex support
- Simple query on Python/Streamlit raises pandasai.exceptions.PandasAIApiCallError HOT 3
- Add Firebase database as connector
- The figure is still saved in default folder when I set "save_charts" as False
- get_openai_callback bug when model is gpt-4o HOT 2
- Agent not working as expected HOT 1
- LocalLLM Error 400 - chat messages must alternate roles between 'user' and 'assistant' HOT 6
- (cx_Oracle.DatabaseError) ORA-00904: "RAND": invalid identifier
- NameError: name 'pl' is not defined HOT 2
- it cannot answer to the questions once 3 data frames are merged and provided HOT 1
- How do i get an api key HOT 1
- "verbose": False seems to still log to console HOT 1
- Support Chinese characters in prompt generation stage HOT 1
- cannot pickle '_thread.RLock' object when save Agent Object to Redis HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas-ai.