The coding game just changed - PandasAI is just the beginningsteemCreated with Sketch.

Something interesting happened a few weeks ago. Pandas, the popular python library that gives excel like capabilities at scale just released a PandasAI version that is not only super awesome but I think will has the capability to turn computer programming into a truly universal language like the English language. Suddenly, because of PandasAI, I think everyone from a 5 year old to your 90 year old grandma will be able to speak (type) computer programs.

How does PandasAI work?

Inspired from its GitHub page, let's assume you want to find the country with the highest GDP in a data frame such as

GDP_df = pd.DataFrame({'Country': ['United States', 'Canada', 'Mexico', 'Germany', 'France'], 'GDP': [3.2, 2.9, 1.2, 1.7, 1.6]})

Any programmer knows to do this will require several complex codes such as for example

max_GDP_country = GDP_df['Country'[max(GDP_df['GDP']]

The above code requires a very deep knowledge of both programming and the pandas library in general.

However, by using PandasAI, one can simply write

max_GDP_country = pandas_ai(GDP_df, prompt='Which country has the highest GDP?')

Viola! Did you see that? You only needed to query the pandas data frame with any "English" like question and you get the same answer that would have required an experienced programmer or software engineer! I don't know about you but I think this is really cool and can change the computer programming industry for both good and bad

What makes PandasAI work?

Clearly, PandasAI is powered by Chat-GPT since you will need an OpenAI token to assess it and we all know the only product OpenAI sells. It also goes to show that the world may just be scratching the surface when it comes what Chat-GPT and Artificial General Intelligence (AGI) can do. These tools can truly change our world in ways that are largely unpredictable or for which humanity is unprepared. For example, if everyone can code, who then becomes the custodian of the AGI tools? Everyone with a computer or the AGIs may begin to code themselves into existence and/or oblivion? If these tools can control human behaviour and lifestyle, does this mean when AGI's can code themselves, they can control human behaviour and our lifestyles too?

Suddenly, The Matrix doesn't sound so Sci-Fi after all...

Yours in learning,

AI+Finance

Coin Marketplace

STEEM 0.29
TRX 0.11
JST 0.030
BTC 68403.29
ETH 3749.74
USDT 1.00
SBD 3.66