{"id":15,"date":"2026-06-04T16:51:58","date_gmt":"2026-06-04T08:51:58","guid":{"rendered":"https:\/\/ai.wuaishare.cn\/lab\/2026\/06\/04\/anthropic-data-analyst-agent\/"},"modified":"2026-06-05T03:17:03","modified_gmt":"2026-06-04T19:17:03","slug":"anthropic-data-analyst-agent","status":"publish","type":"post","link":"https:\/\/ai.wuaishare.cn\/lab\/15","title":{"rendered":"\u7528 Claude Managed Agents \u6784\u5efa CSV \u6570\u636e\u5206\u6790\u4ee3\u7406"},"content":{"rendered":"<h2>\u4e3a\u4ec0\u4e48\u6570\u636e\u5206\u6790 Agent \u9002\u5408\u4ece CSV \u5f00\u59cb<\/h2>\n<p>Anthropic \u7684 data analyst agent \u793a\u4f8b\u9009\u4e86\u4e00\u4e2a\u5f88\u5e38\u89c1\u7684\u573a\u666f\uff0c\u6709\u4eba\u4e22\u7ed9\u4f60\u4e00\u4e2a CSV\uff0c\u7136\u540e\u95ee\u300c\u91cc\u9762\u6709\u4ec0\u4e48\u503c\u5f97\u770b\u300d\u3002\u8fd9\u4e2a\u4efb\u52a1\u8db3\u591f\u771f\u5b9e\uff0c\u4e5f\u8db3\u591f\u53ef\u63a7\u3002\u5b83\u4e0d\u9700\u8981\u4e00\u4e0a\u6765\u8fde\u751f\u4ea7\u6570\u4ed3\uff0c\u800c\u662f\u5148\u628a\u4e0a\u4f20\u6570\u636e\u3001\u8fd0\u884c\u5206\u6790\u3001\u751f\u6210\u56fe\u8868\u3001\u8f93\u51fa HTML \u62a5\u544a\u548c\u4e0b\u8f7d\u4ea7\u7269\u8dd1\u901a\u3002\u5bf9\u56e2\u961f\u8bd5\u70b9\u6570\u636e Agent \u6765\u8bf4\uff0c\u8fd9\u662f\u4e00\u4e2a\u5f88\u7a33\u7684\u8d77\u70b9\u3002<\/p>\n<h2>\u56db\u4e2a\u6838\u5fc3\u5bf9\u8c61\u8981\u5206\u6e05<\/h2>\n<p>Cookbook \u628a Claude Managed Agents \u62c6\u6210 Agent\u3001Environment\u3001Session \u548c Events\u3002Agent \u8d1f\u8d23\u6a21\u578b\u3001\u7cfb\u7edf\u63d0\u793a\u3001\u5de5\u5177\u548c\u6280\u80fd\uff1bEnvironment \u662f\u9884\u88c5\u4f9d\u8d56\u548c\u7f51\u7edc\u7b56\u7565\u7684\u5bb9\u5668\u6a21\u677f\uff1bSession \u662f\u4e00\u6b21\u5177\u4f53\u5206\u6790\u4efb\u52a1\uff1bEvents \u662f\u5e94\u7528\u548c Agent \u4e4b\u95f4\u7684\u6d88\u606f\u6d41\u3002\u56e2\u961f\u505a\u4ea7\u54c1\u5316\u65f6\uff0c\u8fd9\u56db\u4e2a\u5bf9\u8c61\u6700\u597d\u76f4\u63a5\u6620\u5c04\u5230\u540e\u53f0\u6570\u636e\u6a21\u578b\u91cc\uff0c\u5426\u5219\u540e\u7eed\u5f88\u96be\u6392\u67e5\u67d0\u4efd\u62a5\u544a\u5230\u5e95\u7531\u54ea\u4e2a\u7248\u672c\u3001\u54ea\u4e2a\u73af\u5883\u751f\u6210\u3002<\/p>\n<h2>\u73af\u5883\u91cc\u5148\u88c5\u597d\u5206\u6790\u4f9d\u8d56<\/h2>\n<p>\u793a\u4f8b\u628a pandas \u548c plotly \u653e\u8fdb environment\uff0c\u8fd9\u4e2a\u9009\u62e9\u5f88\u91cd\u8981\u3002\u4e0d\u8981\u8ba9\u6bcf\u6b21 session \u90fd\u4ece `pip install` \u5f00\u59cb\uff0c\u90a3\u4f1a\u589e\u52a0\u5931\u8d25\u7387\u548c\u7b49\u5f85\u65f6\u95f4\u3002\u66f4\u597d\u7684\u505a\u6cd5\u662f\u51c6\u5907\u4e00\u5957\u6570\u636e\u5206\u6790\u955c\u50cf\uff0c\u9884\u88c5 pandas\u3001numpy\u3001plotly\u3001openpyxl\u3001pyarrow \u7b49\u5e38\u7528\u5305\uff0c\u518d\u7ed9\u4e0d\u540c\u56e2\u961f\u5355\u72ec\u914d\u7f6e\u7f51\u7edc\u7b56\u7565\u548c\u8f93\u51fa\u76ee\u5f55\u3002<\/p>\n<h2>\u7cfb\u7edf\u63d0\u793a\u8981\u5b9a\u4e49\u4ea4\u4ed8\u7269<\/h2>\n<p>\u6570\u636e\u5206\u6790 Agent \u4e0d\u80fd\u53ea\u56de\u7b54\u51e0\u53e5\u603b\u7ed3\u3002\u5b83\u5e94\u8be5\u4ea4\u4ed8\u4e00\u4efd\u53ef\u6253\u5f00\u3001\u53ef\u5206\u4eab\u3001\u53ef\u590d\u6838\u7684\u62a5\u544a\u3002\u63d0\u793a\u8bcd\u91cc\u8981\u5199\u6e05\u62a5\u544a\u7ed3\u6784\u3001\u56fe\u8868\u8981\u6c42\u3001\u65b9\u6cd5\u8bf4\u660e\u3001\u9650\u5236\u6761\u4ef6\u548c\u4fdd\u5b58\u6587\u4ef6\u540d\u3002\u793a\u4f8b\u91cc\u8981\u6c42\u4fdd\u5b58 `report.html`\uff0c\u8fd9\u4e2a\u7ec6\u8282\u503c\u5f97\u4fdd\u7559\uff0c\u56e0\u4e3a\u5b83\u8ba9\u524d\u7aef\u6216\u81ea\u52a8\u5316\u6d41\u7a0b\u53ef\u4ee5\u7a33\u5b9a\u8bfb\u53d6\u4ea7\u7269\u3002<\/p>\n<h2>\u4e00\u6761\u53ef\u590d\u7528\u6d41\u7a0b<\/h2>\n<ol>\n<li>\u7528\u6237\u4e0a\u4f20 CSV\uff0c\u7cfb\u7edf\u5148\u505a\u683c\u5f0f\u3001\u5927\u5c0f\u3001\u5217\u6570\u548c\u654f\u611f\u5b57\u6bb5\u68c0\u67e5\u3002<\/li>\n<li>\u521b\u5efa session\uff0c\u628a\u6570\u636e\u6587\u4ef6\u4f5c\u4e3a resource \u6302\u8f7d\u5230\u5206\u6790\u73af\u5883\u3002<\/li>\n<li>Agent \u8bfb\u53d6\u6570\u636e\u7ed3\u6784\uff0c\u5148\u8f93\u51fa\u5206\u6790\u8ba1\u5212\uff0c\u518d\u8fd0\u884c\u4ee3\u7801\u548c\u7ed8\u56fe\u3002<\/li>\n<li>\u751f\u6210 HTML \u62a5\u544a\uff0c\u5305\u542b\u5173\u952e\u53d1\u73b0\u3001\u56fe\u8868\u3001\u65b9\u6cd5\u548c\u5f02\u5e38\u503c\u8bf4\u660e\u3002<\/li>\n<li>\u5e94\u7528\u5c42\u4e0b\u8f7d\u62a5\u544a\u548c\u4e2d\u95f4\u6587\u4ef6\uff0c\u540c\u65f6\u5f52\u6863\u4e8b\u4ef6\u6d41\u548c token \u6210\u672c\u3002<\/li>\n<\/ol>\n<h2>\u5b89\u5168\u8fb9\u754c\u5fc5\u987b\u524d\u7f6e<\/h2>\n<p>\u793a\u4f8b\u4e3a\u4e86\u6f14\u793a\u4f7f\u7528\u4e86\u8f83\u5bbd\u7684\u7f51\u7edc\u8bbe\u7f6e\uff0c\u4f46\u751f\u4ea7\u73af\u5883\u5e94\u8be5\u66f4\u8c28\u614e\u3002CSV \u53ef\u80fd\u5305\u542b\u5ba2\u6237\u3001\u4ea4\u6613\u3001\u5de5\u8d44\u6216\u533b\u7597\u6570\u636e\uff0c\u9ed8\u8ba4\u4e0d\u5e94\u8be5\u8054\u7f51\u3002Agent \u8fd0\u884c\u4ee3\u7801\u65f6\u8981\u9650\u5236\u6587\u4ef6\u7cfb\u7edf\u3001\u6267\u884c\u65f6\u95f4\u3001\u5185\u5b58\u548c\u8f93\u51fa\u5927\u5c0f\u3002\u62a5\u544a\u53d1\u5e03\u524d\u4e5f\u8981\u505a\u8131\u654f\u68c0\u67e5\uff0c\u907f\u514d\u628a\u539f\u59cb\u654f\u611f\u503c\u76f4\u63a5\u6e32\u67d3\u5230 HTML \u91cc\u3002<\/p>\n<h2>\u5efa\u8bae\u4ea7\u51fa<\/h2>\n<p>\u53ef\u4ee5\u57fa\u4e8e\u8fd9\u7bc7 Cookbook \u505a\u4e00\u4e2a\u300cCSV \u5230\u62a5\u544a\u300d\u5185\u90e8\u5de5\u5177\u3002\u7b2c\u4e00\u7248\u53ea\u652f\u6301\u4e0a\u4f20\u6587\u4ef6\u3001\u751f\u6210\u62a5\u544a\u3001\u67e5\u770b\u56fe\u8868\u548c\u4e0b\u8f7d\u7ed3\u679c\u3002\u7b49\u4e8b\u4ef6\u8ffd\u8e2a\u3001\u8131\u654f\u3001\u5931\u8d25\u5904\u7406\u90fd\u7a33\u5b9a\u540e\uff0c\u518d\u8003\u8651\u8fde\u63a5\u6570\u636e\u5e93\u6216 Slack\u3002\u4e0d\u8981\u53cd\u8fc7\u6765\uff0c\u4e00\u5f00\u59cb\u5c31\u7ed9 Agent \u6253\u5f00\u6240\u6709\u6570\u636e\u6e90\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u628a Claude Cookbooks \u7684 data analyst agent \u793a\u4f8b\u6574\u7406\u6210\u4e2d\u6587 SOP\uff1a\u4e0a\u4f20 CSV\u3001\u751f\u6210\u5206\u6790\u3001\u8f93\u51fa\u53ef\u4ea4\u4ed8\u62a5\u544a\u3002<\/p>\n","protected":false},"author":0,"featured_media":29,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ai_share_series_order":0,"ai_share_series_key":"","ai_share_source_repo":"","ai_share_source_path":"","ai_share_source_sha":"","ai_share_source_commit":"","ai_share_source_last_checked_at":"","ai_share_source_sync_status":"","ai_share_linked_hub_post_slug":"","ai_share_source_url":"https:\/\/github.com\/anthropics\/claude-cookbooks\/blob\/main\/managed_agents\/data_analyst_agent.ipynb","ai_share_source_title":"Build a data analyst agent with Claude Managed Agents","ai_share_status":"\u5f85\u91c7\u96c6","ai_share_source_id":7,"ai_share_source_canonical_url":"https:\/\/github.com\/anthropics\/claude-cookbooks\/blob\/main\/managed_agents\/data_analyst_agent.ipynb","ai_share_source_verified_at":"2026-06-04","ai_share_source_published_at":"2026-04-08","ai_share_origin_platform":"GitHub","ai_share_origin_author":"Anthropic","ai_share_origin_author_url":"","ai_share_origin_url":"https:\/\/github.com\/anthropics\/claude-cookbooks\/blob\/main\/managed_agents\/data_analyst_agent.ipynb","ai_share_origin_title":"Build a data analyst agent with Claude Managed Agents","ai_share_origin_published_at":"2026-04-08","ai_share_origin_captured_at":"2026-06-04","ai_share_origin_material_type":"official_cookbook","ai_share_origin_transform_note":"","ai_share_origin_disclaimer":"","ai_share_relation_edges_json":"","ai_share_verified_distributions_json":"","footnotes":""},"categories":[36],"tags":[32,38,33,37],"ai_series":[],"ai_topic":[],"ai_creator":[],"ai_source_platform":[],"class_list":["post-15","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-36","tag-claude","tag-csv","tag-managed-agents","tag-37"],"lang":"zh-cn","translations":{"zh-cn":15},"pll_sync_post":{},"_links":{"self":[{"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/comments?post=15"}],"version-history":[{"count":3,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":100,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/posts\/15\/revisions\/100"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/media\/29"}],"wp:attachment":[{"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/media?parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/categories?post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/tags?post=15"},{"taxonomy":"ai_series","embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/ai_series?post=15"},{"taxonomy":"ai_topic","embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/ai_topic?post=15"},{"taxonomy":"ai_creator","embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/ai_creator?post=15"},{"taxonomy":"ai_source_platform","embeddable":true,"href":"https:\/\/ai.wuaishare.cn\/lab\/wp-json\/wp\/v2\/ai_source_platform?post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}