These two new Python&AI projects are on fire again and are open source

Hello everyone, I just got to work, how are you doing?

Continue to share a few popular AI projects today. If you are interested in the project, don’t forget to collect it~

1. Pandas AI

Friends who have done machine learning and data analysis must be familiar with Pandas.

Pandas is based on Numpy's data analysis library, and it is precisely because of its existence that Python has become a powerful and efficient data analysis environment.

Now, someone combines Pandas and AI to help us analyze data more conveniently.

picture

In short, the function is: use PandasAI, let AI help you analyze data.

Here is a simple official example:

import pandas as pd
from pandasai import PandasAI

# Sample DataFrame
df = pd.DataFrame({
    
    
    "country": ["United States", "United Kingdom", "France", "Germany", "Italy", "Spain", "Canada", "Australia", "Japan", "China"],
    "gdp": [21400000, 2940000, 2830000, 3870000, 2160000, 1350000, 1780000, 1320000, 516000, 14000000],
    "happiness_index": [7.3, 7.2, 6.5, 7.0, 6.0, 6.3, 7.3, 7.3, 5.9, 8.0]
})

# Instantiate a LLM
from pandasai.llm.openai import OpenAI
llm = OpenAI()

pandas_ai = PandasAI(llm)
pandas_ai.run(df, prompt='Which are the 5 happiest countries?')

Construct the data, then enter the prompt:

Which are the 5 happiest countries?

According to the input data, AI processes the data and gets the result.

9             China
0     United States
6            Canada
7         Australia
1    United Kingdom
Name: country, dtype: object

It can even be like this, let it draw a picture:

Plot the histogram of countries showing for each the GDP, using different colors for each bar

According to the needs, AI draws a bar chart of GDP for each country.

picture

PandasAI only shows some simple examples here. Interested partners can try it out and ask some more complex requirements to see the effect.

project address:

https://github.com/gventuri/pandas-ai

technology upgrade

In the interview, you must learn to share and communicate, and it is not recommended to work behind closed doors. A person can go fast, a group of people can go farther.

This article is shared by fans of the knowledge planet technology group. Project source code, data, and technical exchange improvements can be obtained by adding the exchange group. The group has more than 2,000 members. The best way to add notes is: source + interest direction, so that it is easy to find like-minded people friend

Method ①, add WeChat account: pythoner666, remarks: from CSDN
method ②, WeChat search official account: Python learning and data mining, background reply: add group

2. gpt4free

gpt4free is the GPT4 project that has been widely circulated recently.

As we all know, although ChatGPT is free, but if you want to experience the powerful GPT4, the only way is "krypton gold".

Recharge a Plus member and you can use it.

However, Xtekky, a 17-year-old boy who focuses on "rebellion", has taken a different approach, allowing us to use (bai) (piao) GPT-4 and GPT-3.5 models for free through websites such as You.com, Quora, and CoCalc.

In this way, users can use these third-party API interfaces to indirectly call OpenAI's API, so as to achieve the purpose of free use.

Currently supported websites, there are so many:

picture

The author also put the service on discord, and you can experience it in the chat channel.

However, Xtekky, the CS student who made the project, says OpenAI is now giving him five days to shut down the entire project or face lawsuits.

However, from the current point of view, Github and OpenAI, which belong to Microsoft, have not deleted this warehouse.

project address:

https://github.com/xtekky/gpt4free

Guess you like

Origin blog.csdn.net/m0_59596937/article/details/130516447