{"id":81681,"date":"2025-12-12T23:35:57","date_gmt":"2025-12-12T15:35:57","guid":{"rendered":"https:\/\/aicats.wiki\/sites\/81681.html"},"modified":"2025-12-12T23:35:57","modified_gmt":"2025-12-12T15:35:57","slug":"pandasai","status":"publish","type":"sites","link":"https:\/\/aicats.wiki\/tw\/sites\/81681.html","title":{"rendered":"PandasAI"},"content":{"rendered":"<p><strong>PandasAI<\/strong> \u662f\u4e00\u6b3e\u57fa\u4e8e Python \u7684\u5f00\u6e90<a href=\"https:\/\/aicats.wiki\/tw\/2025\/06\/30\/5666-html\/\" title=\"domoai\u662f\u4ec0\u9ebc\uff1f 5\u5206\u9418\u5e36\u4f60\u4e86\u89e3\u9019\u6b3eAI\u6578\u64da\u5206\u6790\u5e73\u53f0\u7684\u6838\u5fc3\u512a\u52e2\">\u6570\u636e\u5206\u6790 AI \u5de5\u5177<\/a>\uff0c\u5141\u8bb8\u7528\u6237\u901a\u8fc7\u81ea\u7136\u8bed\u8a00\u5bf9\u8bdd\u5b8c\u6210\u6570\u636e\u67e5\u8be2\u3001\u6570\u636e\u6e05\u6d17\u548c\u53ef\u89c6\u5316\uff0c\u65e0\u9700\u7f16\u5199\u4ee3\u7801\u3002\u5b83\u652f\u6301\u591a\u6570\u636e\u6e90\u3001\u591a\u4e3b\u6d41\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff0c\u5e76\u4ee5 <strong>\u5bf9\u8bdd\u5f0f\u4eba\u5de5\u667a\u80fd<\/strong> \u5927\u5e45\u964d\u4f4e\u4e86\u6570\u636e\u5206\u6790\u95e8\u69db\u3002<strong>\u5f00\u6e90\u514d\u8d39\uff0c\u9762\u5411\u4e2a\u4eba\u3001\u4f01\u4e1a\u53ca\u5f00\u53d1\u8005\u7686\u9002\u7528<\/strong>\u3002\u8be5\u5de5\u5177\u4e3a AI\u529e\u516c\u5de5\u5177 \u5206\u7c7b\uff0c\u9002\u7528\u4e8e\u8ffd\u6c42\u9ad8\u6548\u5206\u6790\u7684\u804c\u573a\u4eba\u58eb\u4e0e\u7814\u7a76\u8005\u3002<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u5f00\u8f9f\u5bf9\u8bdd\u5f0f\u6570\u636e\u5206\u6790\u65b0\u65f6\u4ee3\u2014\u2014PandasAI\u6df1\u5ea6\u62a5\u9053<\/h1>\n\n\n\n<p>\u4f5c\u4e3a\u4eba\u5de5\u667a\u80fd\u4e0e\u6570\u636e\u5206\u6790\u878d\u5408\u7684\u65b0\u751f\u529b\u91cf\uff0c<strong>PandasAI<\/strong> \u8fc5\u901f\u6210\u4e3a\u6570\u636e\u884c\u4e1a\u5173\u6ce8\u7684\u7126\u70b9\u3002\u672c\u7bc7\u62a5\u9053\u5c06\u8be6\u7ec6\u5256\u6790\u8fd9\u4e00\u521b\u65b0\u5de5\u5177\u5e73\u53f0\u7684\u4e3b\u8981\u529f\u80fd\u3001\u4ef7\u683c\u7b56\u7565\u3001\u4f7f\u7528\u95e8\u69db\u53ca\u5b9e\u9645\u5e94\u7528\u7b49\u591a\u65b9\u9762\u5185\u5bb9\uff0c\u5f15\u5bfc\u8bfb\u8005\u6df1\u5165\u4e86\u89e3\u548c\u9ad8\u6548\u4e0a\u624b PandasAI\u3002<br><strong>PandasAI \u5b98\u65b9\u94fe\u63a5\uff1a<\/strong> <a href=\"https:\/\/github.com\/gventuri\/pandas-ai\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >https:\/\/github.com\/gventuri\/pandas-ai<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">PandasAI\u662f\u4ec0\u4e48\uff1f<\/h2>\n\n\n\n<p><strong>PandasAI<\/strong> \u662f\u4e00\u6b3e\u57fa\u4e8e Python \u7684\u5f00\u6e90\u9879\u76ee\uff0c\u4e3b\u6253\u201c\u8ba9 AI \u7406\u89e3\u6570\u636e\uff0c\u8ba9\u6570\u636e\u5206\u6790\u53d8\u6210\u81ea\u7136\u8bed\u8a00\u5bf9\u8bdd\u201d\u3002\u5b83\u5728 <strong>pandas<\/strong> \u6570\u636e\u5206\u6790\u6846\u67b6\u4e4b\u4e0a\u5f15\u5165\u4e86\u81ea\u7136\u8bed\u8a00\u5904\u7406\uff08NLP\uff09\u4e0e\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08\u5982 GPT \u7cfb\u5217\uff09\uff0c<strong>\u5e2e\u52a9\u7528\u6237\u901a\u8fc7\u201c\u804a\u5929\u201d\u7684\u65b9\u5f0f\u5b8c\u6210\u6570\u636e\u63a2\u7d22\u3001\u6e05\u6d17\u3001\u5206\u6790\u4e0e\u53ef\u89c6\u5316<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1920\" height=\"1009\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/12\/image-136-6.jpg\" alt=\"PandasAI\u5b98\u65b9\u7f51\u7ad9\u622a\u56fe\" class=\"wp-image-81693\"\/><figcaption class=\"wp-element-caption\">\u5716\uff0f<a href=\"https:\/\/pandas-ai.com\/\" title=\"\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >PandasAI\u5b98\u65b9\u7f51\u7ad9\u622a\u56fe<\/a><\/figcaption><\/figure>\n\n\n\n<p>\u6781\u5927\u964d\u4f4e\u4e86\u6570\u636e\u64cd\u4f5c\u95e8\u69db\uff0c\u5c24\u5176\u9002\u5408\u975e\u7f16\u7a0b\u80cc\u666f\u4eba\u7fa4\u548c\u5e0c\u671b\u63d0\u5347\u6548\u7387\u7684\u4e13\u4e1a\u5206\u6790\u5e08\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6d88\u9664\u4f20\u7edf SQL\/Python \u4ee3\u7801\u58c1\u5792<\/li>\n\n\n\n<li>\u652f\u6301\u591a\u5143\u5f02\u6784\u6570\u636e\u6e90\u5feb\u901f\u63a5\u5165<\/li>\n\n\n\n<li>\u8ba9\u6570\u636e\u53ef\u89c6\u5316\u3001\u6570\u636e\u8d28\u91cf\u63d0\u5347\u7b49\u64cd\u4f5c\u4e00\u7ad9\u5f0f\u5bf9\u8bdd\u5b8c\u6210<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">PandasAI\u7684\u4e3b\u8981\u529f\u80fd<\/h2>\n\n\n\n<p>PandasAI \u5728\u6570\u636e\u5206\u6790\u6d41\u7a0b\u5404\u73af\u8282\u63d0\u4f9b\u4e30\u5bcc\u7684 AI \u80fd\u529b\uff0c\u5e76\u5c5e\u4e8e <strong>\u4eba\u5de5\u667a\u6167\u8fa6\u516c\u5de5\u5177<\/strong> \u5206\u7c7b\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u81ea\u7136\u8bed\u8a00\u6570\u636e\u67e5\u8be2<\/h3>\n\n\n\n<p>\u7528\u6237\u53ef\u7528\u81ea\u7136\u8bed\u8a00\u63d0\u95ee\uff0cPandasAI \u5229\u7528\u751f\u6210\u5f0f AI \u6a21\u578b\u81ea\u52a8\u89e3\u6790\u5e76\u8f6c\u5316\u4e3a Python \u4ee3\u7801\uff08\u6216 SQL\uff09\uff0c\u5728\u6570\u636e\u96c6\u4e0a\u76f4\u63a5\u6267\u884c\u5e76\u8fd4\u56de\u7ed3\u679c\u3002\u4f8b\u5982\uff1a<\/p>\n\n\n\n<!--wp-compress-html--><!--wp-compress-html no compression-->\n<pre class=\"wp-block-code\"><code>agent.chat(\"Which are the top 5 countries by sales?\")<\/code><\/pre>\n<!--wp-compress-html no compression--><!--wp-compress-html-->\n\n\n\n<h3 class=\"wp-block-heading\">\u591a\u6570\u636e\u6e90\u548c\u7075\u6d3b\u652f\u6301<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u652f\u63f4\u985e\u578b<\/th><th>\u63cf\u8ff0<\/th><\/tr><tr><td>CSV\/XLSX<\/td><td>\u76f4\u63a5\u8bfb\u53d6\u672c\u5730\u6216\u4e91\u7aef\u8868\u683c\u6587\u4ef6<\/td><\/tr><tr><td>SQL\u6570\u636e\u5e93<\/td><td>\u96c6\u6210 PostgreSQL\u3001MySQL\u3001BigQuery\u3001Databrick\u3001Snowflake \u7b49<\/td><\/tr><tr><td>Pandas DataFrame<\/td><td>\u517c\u5bb9 pandas \u751f\u6001<\/td><\/tr><tr><td>\u591a\u8868\u5173\u7cfb\/\u89c6\u56fe<\/td><td>\u652f\u6301\u591a\u6e90\u6570\u636e\u8868\u81ea\u52a8\u667a\u80fd\u8054\u7ed3\u4e0e\u5206\u6790<\/td><\/tr><tr><td>\u64f4\u5145\u6a21\u7d44<\/td><td>\u652f\u6301\u6269\u5c55\u5305\u96c6\u6210<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u667a\u6167\u6578\u64da\u8996\u89ba\u5316<\/h3>\n\n\n\n<p>\u4ec5\u9700\u4e00\u53e5\u8bdd\u4fbf\u53ef\u751f\u6210\u5404\u7c7b\u56fe\u8868<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1920\" height=\"1006\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/12\/image-136-7.jpg\" alt=\"\u5b98\u7db2\u529f\u80fd\u4ecb\u7d39\" class=\"wp-image-81700\"\/><figcaption class=\"wp-element-caption\">\u5716\uff0f\u5b98\u7db2\u529f\u80fd\u4ecb\u7d39<\/figcaption><\/figure>\n\n\n\n<p>\u76f4\u63a5\u4fdd\u5b58\u56fe\u7247\u6216\u5d4c\u5165\u62a5\u544a\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6570\u636e\u81ea\u52a8\u6e05\u6d17\u4e0e\u7279\u5f81\u6784\u9020<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u81ea\u52a8\u5904\u7406\u7f3a\u5931\u503c\u3001\u5f02\u5e38\u503c\uff0c\u667a\u80fd\u7ed9\u5efa\u8bae\u6216\u751f\u6210\u811a\u672c<\/li>\n\n\n\n<li>\u81ea\u52a8\u884d\u751f\u7279\u5f81\u63d0\u5347\u5efa\u6a21\u8d28\u91cf<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u8cc7\u6599\u5b89\u5168\u8207\u96b1\u79c1<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u652f\u6301\u8868\u5934\u4e0a\u4f20\u3001\u8131\u654f\u6837\u672c\u7b49\u591a\u7b56\u7565\u4fdd\u8bc1\u6570\u636e\u5b89\u5168<\/li>\n<\/ul>\n\n\n\n<p>\u66f4\u591a\u80fd\u529b\u8bf4\u660e\uff0c\u8bf7\u53c2\u8003<a href=\"https:\/\/pandas-ai.readthedocs.io\/en\/latest\/\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >\u5b98\u65b9\u6587\u6a94<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PandasAI\u7684\u4ef7\u683c &amp; \u65b9\u6848<\/h2>\n\n\n\n<p>PandasAI\u6838\u5fc3\u80fd\u529b\u5b8c\u5168\u5f00\u6e90\u514d\u8d39\uff0c\u5546\u4e1a\u65b9\u6848\u5305\u542b\u4e91\u670d\u52a1\u3001\u4f01\u4e1a\u7248\u7b49\u3002\u5177\u4f53\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u7248\u672c<\/th><th>\u9069\u7528\u5c0d\u8c61<\/th><th>\u4e3b\u8981\u7279\u5fb5<\/th><th>\u6388\u6743\u60c5\u51b5<\/th><\/tr><tr><td>\u5f00\u6e90\u57fa\u7840\u7248<\/td><td>\u500b\u4eba\/\u5718\u968a<\/td><td>\u6838\u5fc3AI\u5bf9\u8bdd\u3001\u53ef\u89c6\u5316\u3001\u5355\u673a\u64cd\u4f5c<\/td><td>\u514d\u8d39MIT<\/td><\/tr><tr><td>\u4e91\u7aef\/\u4f01\u4e1a\u7248<\/td><td>\u5546\u696d\u7528\u6236<\/td><td>\u9ad8\u7ea7\u5411\u91cf\u68c0\u7d22\u3001\u591a\u7528\u6237\u3001\u5b9a\u5236\u5b89\u5168<\/td><td>\u5546\u696d\u6388\u6b0a<\/td><\/tr><tr><td>\u6269\u5c55API\/\u63d2\u4ef6\u5e02\u573a<\/td><td>\u958b\u767c\u8005<\/td><td>\u81ea\u5b9a\u4e49\u6a21\u578b\u3001\u63d2\u4ef6\u3001API\u63a5\u53e3<\/td><td>\u6309\u63d2\u4ef6\u5b9a\u4ef7<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1932\" height=\"1025\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/12\/image-136.png\" alt=\"PandasAI\u5b98\u65b9\u4ef7\u683c\u65b9\u6848\u9875\" class=\"wp-image-81707\"\/><figcaption class=\"wp-element-caption\">\u5716\uff0f<a href=\"https:\/\/pandas-ai.com\/#pricing\" title=\"\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >PandasAI\u5b98\u65b9\u4ef7\u683c\u65b9\u6848\u9875<\/a><\/figcaption><\/figure>\n\n\n\n<p>\u8be6\u7ec6\u5546\u7528\u4ef7\u683c\u53ef\u8054\u7cfb<a href=\"https:\/\/pandas-ai.com\/enterprise\/\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >\u5b98\u65b9\u56e2\u961f<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u5982\u4f55\u4f7f\u7528PandasAI<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u73af\u5883\u8981\u6c42\uff1aPython 3.8 \u53ca\u4ee5\u4e0a\uff08\u4e0d\u517c\u5bb93.12\uff09<\/li>\n\n\n\n<li>\u5b89\u88c5\u547d\u4ee4\uff1a<code>pip install pandas<a class=\"external\" href=\"https:\/\/aicats.wiki\/tw\/sitetag\/ai\" title=\"\u67e5\u770b\u8207 ai \u76f8\u95dc\u7684\u6587\u7ae0\" target=\"_blank\">ai<\/a><\/code><\/li>\n\n\n\n<li>\u7b80\u5355\u4f53\u9a8c\uff1a<\/li>\n<\/ol>\n\n\n\n<!--wp-compress-html--><!--wp-compress-html no compression-->\n<pre class=\"wp-block-code\"><code>import pandasai as pai\nfrom pandasai import Agent\nimport pandas as pd\n\ndf = pd.DataFrame({'country':&#91;'US','CN','JP'], 'sales':&#91;100,200,150]})\nagent = Agent(df)\nprint(agent.chat(\"Which country has the highest sales?\"))\n# \u8f93\u51fa: CN<\/code><\/pre>\n<!--wp-compress-html no compression--><!--wp-compress-html-->\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1950\" height=\"1020\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/12\/image-137.png\" alt=\"PandasAI\u5b98\u7f51\u529f\u80fd\u4ecb\u7ecd\" class=\"wp-image-81712\"\/><figcaption class=\"wp-element-caption\">\u5716\uff0f<a href=\"https:\/\/github.com\/sinaptik-ai\/pandas-ai\" title=\"\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >PandasAI\u5b98\u7f51\u529f\u80fd\u4ecb\u7ecd<\/a><\/figcaption><\/figure>\n\n\n\n<p>\u66f4\u590d\u6742\u7528\u6cd5\u89c1<a href=\"https:\/\/docs.pandas-ai.com\/v3\/introduction\" title=\"\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >\u5b98\u65b9\u6587\u6a94<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PandasAI\u7684\u9002\u7528\u4eba\u7fa4<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u6570\u636e\u5206\u6790\u5e08\/\u79d1\u5b66\u5bb6<\/strong>\uff1a\u4e13\u6ce8\u4e1a\u52a1\u63d0\u95ee\u63d0\u5347\u6548\u7387<\/li>\n\n\n\n<li><strong>\u975e\u6280\u672f\u5546\u52a1\u90e8\u95e8<\/strong>\uff1a0\u4ee3\u7801\u95e8\u69db\u7528\u81ea\u7136\u8bed\u8a00\u5b8c\u6210\u62a5\u8868<\/li>\n\n\n\n<li><strong>\u5f00\u53d1\/\u79d1\u7814\u4eba\u5458<\/strong>\uff1a\u5feb\u901f\u539f\u578b\u4e0e\u96c6\u6210<\/li>\n\n\n\n<li><strong>\u4f01\u4e1a\u51b3\u7b56\u5c42<\/strong>\uff1a\u53ca\u65f6\u201c\u95ee\u7b54\u201d\u83b7\u5f97\u6570\u636e\u6d1e\u5bdf<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">PandasAI\u6838\u5fc3\u6a21\u5757\u53ca\u6269\u5c55\u529f\u80fd<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u5927\u578b\u8bed\u8a00\u6a21\u578b\uff08LLM\uff09\u96c6\u6210<\/h3>\n\n\n\n<p>\u53ef\u5bf9\u63a5 OpenAI GPT\u3001Anthropic Claude\u3001Google Gemini \u7b49\u591a\u4e3b\u6d41LLM<\/p>\n\n\n\n<p>\u7075\u6d3b\u9002\u914d\u5408\u89c4\u4e0e\u6210\u672c\u3002<\/p>\n\n\n\n<!--wp-compress-html--><!--wp-compress-html no compression-->\n<pre class=\"wp-block-code\"><code>from pandasai_litellm.litellm import LiteLLM\nllm = LiteLLM(model=\"gpt-4.1-mini\", api_key=\"YOUR_API_KEY\")\npai.config.set({\"llm\": llm})\n<\/code><\/pre>\n<!--wp-compress-html no compression--><!--wp-compress-html-->\n\n\n\n<h3 class=\"wp-block-heading\">\u667a\u80fd\u4f1a\u8bdd\u4e0e\u6570\u636e\u8bb0\u5fc6<\/h3>\n\n\n\n<p>\u591a\u8f6e\u5bf9\u8bdd\u3001\u4e0a\u4e0b\u6587\u8fde\u7eed\u8ffd\u95ee\uff1a<br><code>agent.chat(\"Who gets paid the most?\")<\/code><br><code>agent.follow_up(\"Show her salary trend in the last 3 years.\")<\/code><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1913\" height=\"1012\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/12\/image-138.png\" alt=\"PandasAI\u5b98\u65b9\u6587\u6863\" class=\"wp-image-81715\"\/><figcaption class=\"wp-element-caption\">\u5716\uff0f<a href=\"https:\/\/docs.pandas-ai.com\/v3\/introduction\" title=\"\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >PandasAI\u5b98\u65b9\u6587\u6863<\/a><\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u6570\u636e\u8fde\u63a5\u5668\u4e0e\u6570\u636e\u6cbb\u7406<\/h3>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u6570\u636e\u6e90\u7c7b\u578b<\/th><th>\u652f\u6301\u60c5\u6cc1<\/th><\/tr><tr><td>CSV<\/td><td>\u2713 \u672c\u5730\u4e0e\u4e91\u7aef\u652f\u6301<\/td><\/tr><tr><td>Excel<\/td><td>\u2713 pandas \u751f\u6001<\/td><\/tr><tr><td>SQL\u6570\u636e\u5e93<\/td><td>\u2713 \u6269\u5c55\u5305\u652f\u6301<\/td><\/tr><tr><td>Snowflake\/Databricks<\/td><td>\u2713 \u4f01\u4e1a\u7248<\/td><\/tr><tr><td>\u591a\u8868&amp;\u89c6\u56fe<\/td><td>\u2713 \u8bed\u4e49\u5c42\u8054\u5408\u5206\u6790<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">\u53ef\u6269\u5c55\u5b89\u5168\u673a\u5236<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u8131\u654f\u6837\u672c\u4e0a\u4f20\u4fdd\u8bc1\u9690\u79c1<\/li>\n\n\n\n<li>Docker\u6c99\u7bb1\u6267\u884c\uff0c\u9632Prompt\u6ce8\u5165<\/li>\n\n\n\n<li>\u652f\u6301\u4f9d\u8d56\u9ed1\u767d\u540d\u5355\u7ba1\u7406<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u793a\u4f8b\u5e94\u7528\uff1a\u591a\u6570\u636e\u8868\u5206\u6790<\/h3>\n\n\n\n<!--wp-compress-html--><!--wp-compress-html no compression-->\n<pre class=\"wp-block-code\"><code># \u5458\u5de5\u4fe1\u606f\u4e0e\u5de5\u8d44\u8868\u8054\u5408\u5206\u6790\ntagent = Agent(&#91;employees_df, salaries_df])\nresult = agent.chat(\"Which department pays the highest average salary?\")\n<\/code><\/pre>\n<!--wp-compress-html no compression--><!--wp-compress-html-->\n\n\n\n<p>\u591a\u8868\u5206\u6790\u8fd4\u56de\u7cbe\u51c6\u7ed3\u679c\uff0c\u66f4\u591a Demo \u89c1<a href=\"https:\/\/github.com\/gventuri\/pandas-ai\/tree\/main\/examples\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >\u5b98\u65b9\u4ed3\u5e93<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u6570\u636e\u8f93\u51fa\u4e0e\u53ef\u89c6\u5316<\/h3>\n\n\n\n<p>\u8f93\u51fa\u7c7b\u578b\u4e30\u5bcc<\/p>\n\n\n\n<p>\u652f\u6301\u6587\u672c\u3001\u6570\u503c\u3001DataFrame\u3001\u56fe\u8868\u7b49\u591a\u79cd\u683c\u5f0f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>\u8f38\u51fa\u985e\u578b<\/th><th>\u8aaa\u660e<\/th><\/tr><tr><td>String<\/td><td>\u6587\u672c\u5206\u6790\u4e0e\u89e3\u8bfb<\/td><\/tr><tr><td>Number<\/td><td>\u6570\u503c\u7ed3\u679c<\/td><\/tr><tr><td>DataFrame<\/td><td>\u7ed3\u6784\u5316\u6570\u636e\u4fbf\u4e8e\u4e8c\u6b21\u5206\u6790<\/td><\/tr><tr><td>Chart\/Plot<\/td><td>\u81ea\u52d5\u7522\u751f\u5716\u8868<\/td><\/tr><tr><td>Error<\/td><td>\u8c03\u8bd5\u4e0e\u62a5\u9519\u89e3\u91ca<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1921\" height=\"1011\" src=\"https:\/\/aicats.wiki\/wp-content\/uploads\/2025\/12\/image-139.jpg\" alt=\"\u5b98\u65b9\u90e8\u843d\u683c\u9801\" class=\"wp-image-81718\"\/><figcaption class=\"wp-element-caption\">\u5716\uff0f<a href=\"https:\/\/blog.pandas-ai.com\/\" title=\"\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >\u5b98\u65b9\u90e8\u843d\u683c\u9801<\/a><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u5e38\u898b\u554f\u984c\uff08FAQ\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">PandasAI\u662f\u5426\u4f1a\u4e0a\u4f20\u6211\u7684\u5168\u90e8\u6570\u636e\u5230\u4e91\u7aef\uff1f<\/h3>\n\n\n\n<p><strong>\u4e0d\u6703<\/strong>\u3002\u9ed8\u8ba4\u72b6\u6001\u4e0b\u4ec5\u4f20\u5c0f\u6837\u672c\u8868\u5934\uff0c\u4e0d\u6cc4\u9732\u654f\u611f\u6570\u636e\uff0c\u4e5f\u652f\u6301\u4f01\u4e1a\u6a21\u5f0f\u4e0b\u5b57\u6bb5\u540d\u4f20\u8f93\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PandasAI\u5bf9\u4e2d\u6587\/\u591a\u8bed\u8a00\u652f\u6301\u60c5\u51b5\u5982\u4f55\uff1f<\/h3>\n\n\n\n<p>\u5df2<strong>\u5b8c\u7f8e\u652f\u6301\u4e2d\u6587\u63d0\u95ee\u4e0e\u6570\u636e<\/strong>\uff0c\u53ef\u76f4\u63a5\u7528\u7b80\u4f53\/\u7e41\u4f53\u7b49\u81ea\u7136\u8bed\u8a00\u64cd\u63a7\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">PandasAI\u5bf9\u5927\u6570\u636e\u91cf\u4e0e\u4f01\u4e1a\u73af\u5883\u652f\u6301\u600e\u6837\uff1f<\/h3>\n\n\n\n<p>\u4e2d\u5c0f\u6570\u636e\u6d41\u7545\u652f\u6301\uff0c\u767e\u4e07\u4ee5\u4e0a\u5efa\u8bae\u7ed3\u5408SQL\/\u5206\u5e03\u5f0f\u4e91\u6570\u636e\u5e93\u4f7f\u7528\uff08\u4f01\u4e1a\u7248\u4e0b\uff09\u3002<\/p>\n\n\n\n<p>\u5728\u6570\u636e\u9a71\u52a8\u8f6c\u578b\u6d6a\u6f6e\u4e0b\uff0c<strong>PandasAI<\/strong> \u6781\u5927\u5730<strong>\u964d\u4f4e\u4e86\u6570\u636e\u5206\u6790\u7684\u95e8\u69db\u4e0e\u58c1\u5792<\/strong><\/p>\n\n\n\n<p>\u8ba9\u4efb\u4f55\u4eba\u548c\u7ec4\u7ec7\u90fd\u80fd\u501f\u52a9 AI \u7684\u529b\u91cf\u8f7b\u677e\u53d1\u73b0\u6570\u636e\u4ef7\u503c\u3002\u65e0\u8bba\u4f60\u662f\u65b0\u624b\u8fd8\u662f\u8d44\u6df1\u67b6\u6784\u5e08\uff0cPandasAI \u90fd\u4f1a\u5e26\u6765\u66f4\u9ad8\u6548\u7684\u667a\u80fd\u5206\u6790\u4f53\u9a8c\u3002\u6b22\u8fce\u8bbf\u95ee <a href=\"https:\/\/github.com\/gventuri\/pandas-ai\" target=\"_blank\"  rel=\"nofollow noopener\"  class=\"external\" >\u5b98\u65b9\u4ed3\u5e93<\/a> \u4e86\u89e3\u53ca\u52a0\u5165\u5bf9\u8bdd\u5f0f\u6570\u636e\u5206\u6790\u65b0\u8303\u5f0f\uff01<\/p>","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"_crsspst_to_aicatswiki":true,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"content_visibility":[262],"sitetag":[17,1221,2231,1222,1702,22],"favorites":[559],"class_list":{"0":"post-81681","1":"sites","2":"type-sites","3":"status-publish","4":"hentry","5":"sitetag-ai","10":"sitetag-github","11":"favorites-ai-office-tools"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/sites\/81681","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/sites"}],"about":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/types\/sites"}],"author":[{"embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/comments?post=81681"}],"version-history":[{"count":2,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/sites\/81681\/revisions"}],"predecessor-version":[{"id":81730,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/sites\/81681\/revisions\/81730"}],"wp:attachment":[{"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/media?parent=81681"}],"wp:term":[{"taxonomy":"content_visibility","embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/content_visibility?post=81681"},{"taxonomy":"sitetag","embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/sitetag?post=81681"},{"taxonomy":"favorites","embeddable":true,"href":"https:\/\/aicats.wiki\/tw\/wp-json\/wp\/v2\/favorites?post=81681"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}