Giter Site home page Giter Site logo

Comments (8)

gventuri avatar gventuri commented on May 22, 2024 2

@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.

mzy2240 avatar mzy2240 commented on May 22, 2024 2

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.

gventuri avatar gventuri commented on May 22, 2024 1

@shuangquanhuang super nice addition, will work on it!

from pandas-ai.

gventuri avatar gventuri commented on May 22, 2024 1

@mzy2240 @HenriqueAJNB I've created one (#127 )

from pandas-ai.

ambujpawar avatar ambujpawar commented on May 22, 2024

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.

ambujpawar avatar ambujpawar commented on May 22, 2024

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.

HenriqueAJNB avatar HenriqueAJNB commented on May 22, 2024

This groupby tasks should be another issue. Can you create that @mzy2240?

from pandas-ai.

gventuri avatar gventuri commented on May 22, 2024

Feature added with this commit: be4c717

Closing

from pandas-ai.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.