今天继续分享几个热门的AI项目:
一、PandasAI
做过机器学习,数据分析的小伙伴,对于 Pandas 一定不陌生。
Pandas 基于 Numpy 的数据分析库,也正是因为它的存在,才让 Python 成为了强大且高效的数据分析环境。
而现在,有人将 Pandas 和 AI 结合,能够帮助我们,更方便地分析数据。
简而言之,功能就是:用 PandasAI,让 AI 帮你分析数据。
这里有个简单的官方例子:
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?')
甚至还能这样,让它画个图:
Plot the histogram of countries showing for each the GDP, using different colors for ea

文章介绍了两个热门的AI项目:PandasAI是一个将Pandas与AI结合的库,简化数据分析过程,能自动进行数据洞察和可视化;而gpt4free则提供了一种免费使用GPT-4和GPT-3.5模型的方法,绕过付费限制,通过第三方API间接调用OpenAI的服务。
最低0.47元/天 解锁文章
1012

被折叠的 条评论
为什么被折叠?



