{"id":47443,"date":"2025-07-30T07:52:00","date_gmt":"2025-07-29T23:52:00","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/47443.html"},"modified":"2025-07-30T07:52:00","modified_gmt":"2025-07-29T23:52:00","slug":"%e8%80%81%e7%a0%81%e5%86%9c%e5%92%8c%e4%bd%a0%e4%b8%80%e8%b5%b7%e5%ad%a6ai%ef%bc%9apython%e7%b3%bb%e5%88%97-seaborn-%e6%a0%b8%e5%bf%83%e6%8a%80%e5%b7%a7","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/47443.html","title":{"rendered":"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7"},"content":{"rendered":"<p>\u4eca\u5929\u804a\u804aSeaborn&#xff0c;\u4f5c\u4e3a\u57fa\u4e8e Matplotlib \u7684\u9ad8\u7ea7\u53ef\u89c6\u5316\u5e93&#xff0c;\u6700\u6838\u5fc3\u7684\u4f18\u52bf\u5728\u4e8e\u5c06\u7edf\u8ba1\u903b\u8f91\u4e0e\u89c6\u89c9\u8868\u8fbe\u6df1\u5ea6\u878d\u5408\u3002\u76f8\u6bd4\u624b\u52a8\u8ba1\u7b97\u7edf\u8ba1\u91cf\u518d\u7ed8\u56fe&#xff0c;Seaborn \u80fd\u76f4\u63a5\u901a\u8fc7\u51fd\u6570\u53c2\u6570\u8c03\u7528\u7edf\u8ba1\u65b9\u6cd5&#xff0c;\u8ba9\u6211\u4eec\u5728\u51e0\u5206\u949f\u5185\u5b8c\u6210\u4ece\u539f\u59cb\u6570\u636e\u5230\u6d1e\u5bdf\u7684\u8f6c\u5316\u3002\u4eca\u5929\u6211\u4eec\u5c06\u805a\u7126\u7edf\u8ba1\u53ef\u89c6\u5316\u7684\u6838\u5fc3\u5de5\u5177&#xff0c;\u901a\u8fc7\u5206\u5e03\u3001\u5173\u7cfb\u3001\u5206\u7c7b\u4e09\u5927\u573a\u666f&#xff0c;\u4e00\u8d77\u719f\u6089 Seaborn \u7528\u6cd5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"864\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729235157-68895e9de265b.png\" width=\"1536\" \/><\/p>\n<h3>\u4e00\u3001\u7edf\u8ba1\u53ef\u89c6\u5316\u7684\u5e95\u5c42\u903b\u8f91<\/h3>\n<p>\u5728\u5b66\u4e60\u5177\u4f53\u51fd\u6570\u524d&#xff0c;\u6211\u4eec\u9700\u8981\u660e\u786e\u4e00\u4e2a\u6838\u5fc3\u95ee\u9898&#xff1a;\u7edf\u8ba1\u53ef\u89c6\u5316\u548c\u666e\u901a\u53ef\u89c6\u5316\u7684\u533a\u522b\u662f\u4ec0\u4e48&#xff1f;<\/p>\n<p>\u666e\u901a\u53ef\u89c6\u5316&#xff08;\u6bd4\u5982\u7528 Matplotlib \u753b\u6563\u70b9\u56fe&#xff09;\u66f4\u4fa7\u91cd \u201c\u8fd8\u539f\u6570\u636e\u672c\u8eab\u201d&#xff0c;\u800c\u7edf\u8ba1\u53ef\u89c6\u5316\u7684\u76ee\u6807\u662f \u201c\u63d0\u70bc\u6570\u636e\u89c4\u5f8b\u201d\u3002\u4f8b\u5982&#xff1a;\u5f53\u6211\u4eec\u6709 10 \u4e07\u6761\u7528\u6237\u6d88\u8d39\u6570\u636e\u65f6&#xff0c;\u76f4\u63a5\u753b\u6563\u70b9\u56fe\u4f1a\u53d8\u6210 \u201c\u70b9\u7684\u6d77\u6d0b\u201d&#xff0c;\u4f46\u7528 Seaborn \u7684\u5206\u5e03\u7c7b\u51fd\u6570&#xff0c;\u80fd\u77ac\u95f4\u5448\u73b0\u6570\u636e\u7684\u96c6\u4e2d\u8d8b\u52bf\u3001\u79bb\u6563\u7a0b\u5ea6\u751a\u81f3\u6982\u7387\u5206\u5e03 \u2014\u2014 \u8fd9\u5c31\u662f\u7edf\u8ba1\u53ef\u89c6\u5316\u7684\u4ef7\u503c&#xff1a;\u7528\u7edf\u8ba1\u65b9\u6cd5\u538b\u7f29\u6570\u636e\u4fe1\u606f&#xff0c;\u7528\u89c6\u89c9\u8bed\u8a00\u4f20\u9012\u5173\u952e\u89c4\u5f8b\u3002<\/p>\n<p>Seaborn \u7684\u7edf\u8ba1\u53ef\u89c6\u5316\u51fd\u6570\u90fd\u9075\u5faa \u201c\u6570\u636e\u8f93\u5165\u2192\u7edf\u8ba1\u8ba1\u7b97\u2192\u89c6\u89c9\u8f93\u51fa\u201d \u7684\u6d41\u7a0b&#xff0c;\u6211\u4eec\u53ea\u9700\u901a\u8fc7\u53c2\u6570\u63a7\u5236\u4e2d\u95f4\u7684\u7edf\u8ba1\u903b\u8f91&#xff08;\u6bd4\u5982\u662f\u5426\u8ba1\u7b97\u6838\u5bc6\u5ea6\u3001\u662f\u5426\u5206\u7ec4\u5bf9\u6bd4&#xff09;&#xff0c;\u65e0\u9700\u624b\u52a8\u7f16\u5199\u7edf\u8ba1\u4ee3\u7801\u3002\u63a5\u4e0b\u6765&#xff0c;\u6211\u4eec\u6309 \u201c\u6570\u636e\u5173\u7cfb\u7c7b\u578b\u201d \u5c55\u5f00\u8bb2\u89e3\u3002<\/p>\n<h3>\u4e8c\u3001\u5206\u5e03\u7c7b\u53ef\u89c6\u5316\u00a0<\/h3>\n<p>\u5f53\u6211\u4eec\u60f3\u77e5\u9053 \u201c\u6570\u636e\u5728\u54ea\u4e9b\u8303\u56f4\u96c6\u4e2d\u201d\u201c\u5206\u5e03\u662f\u5426\u5bf9\u79f0\u201d\u201c\u6709\u6ca1\u6709\u6781\u7aef\u503c\u201d \u65f6&#xff0c;\u5206\u5e03\u7c7b\u53ef\u89c6\u5316\u662f\u6700\u4f73\u9009\u62e9\u3002Seaborn \u63d0\u4f9b\u4e86displot&#xff08;\u96c6\u6210\u5de5\u5177&#xff09;\u3001kdeplot&#xff08;\u6838\u5bc6\u5ea6&#xff09;\u3001ecdfplot&#xff08;\u7d2f\u79ef\u5206\u5e03&#xff09;\u4e09\u5927\u6838\u5fc3\u5de5\u5177&#xff0c;\u8986\u76d6\u4ece\u57fa\u7840\u5230\u8fdb\u9636\u7684\u5206\u5e03\u5206\u6790\u9700\u6c42\u3002<\/p>\n<h4>1\u3001displot<\/h4>\n<p>displot\u662f\u5206\u5e03\u5206\u6790\u7684\u8d77\u70b9&#xff0c;\u5b83\u7684\u672c\u8d28\u662f \u201c\u591a\u79cd\u5206\u5e03\u56fe\u8868\u7684\u96c6\u6210\u5668\u201d&#xff0c;\u901a\u8fc7kind\u53c2\u6570\u53ef\u4ee5\u5207\u6362\u76f4\u65b9\u56fe\u3001\u6838\u5bc6\u5ea6\u56fe\u3001\u7ecf\u9a8c\u7d2f\u79ef\u5206\u5e03\u7b49\u7c7b\u578b&#xff0c;\u65e0\u9700\u8bb0\u5fc6\u591a\u4e2a\u51fd\u6570\u3002<\/p>\n<p>\u6838\u5fc3\u53c2\u6570\u4e0e\u4f5c\u7528&#xff1a;<\/p>\n<ul>\n<li>data&#xff1a;\u8f93\u5165\u7684 DataFrame \u6570\u636e<\/li>\n<\/ul>\n<ul>\n<li>x\/y&#xff1a;\u6307\u5b9a\u8981\u5206\u6790\u7684\u53d8\u91cf&#xff08;x \u662f\u6c34\u5e73\u65b9\u5411&#xff0c;y \u662f\u5782\u76f4\u65b9\u5411&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>kind&#xff1a;\u56fe\u8868\u7c7b\u578b&#xff08;\u9ed8\u8ba4hist\u76f4\u65b9\u56fe&#xff0c;\u53ef\u9009kde\u6838\u5bc6\u5ea6\u3001ecdf\u7d2f\u79ef\u5206\u5e03\u7b49&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>bins&#xff1a;\u76f4\u65b9\u56fe\u7684\u5206\u7bb1\u6570\u91cf&#xff08;\u63a7\u5236\u9897\u7c92\u5ea6&#xff0c;\u5206\u7bb1\u592a\u5c11\u4f1a\u4e22\u5931\u7ec6\u8282&#xff0c;\u592a\u591a\u4f1a\u663e\u6742\u4e71&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>hue&#xff1a;\u6309\u67d0\u4e2a\u5206\u7c7b\u53d8\u91cf\u5206\u7ec4&#xff08;\u6bd4\u5982\u6309 \u201c\u6027\u522b\u201d \u5206\u7537\u5973\u4e24\u7ec4\u5bf9\u6bd4\u5206\u5e03&#xff09;<\/li>\n<\/ul>\n<p>\u5b9e\u6218\u6848\u4f8b&#xff1a;\u5206\u6790\u7528\u6237\u6d88\u8d39\u91d1\u989d\u5206\u5e03<\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4efd\u7535\u5546\u7528\u6237\u6d88\u8d39\u6570\u636e&#xff08;user_data&#xff09;&#xff0c;\u5305\u542b \u201c\u6d88\u8d39\u91d1\u989d\u201d&#xff08;amount&#xff09;\u548c \u201c\u7528\u6237\u7b49\u7ea7\u201d&#xff08;level&#xff1a;\u666e\u901a \/ \u4f1a\u5458&#xff09;\u5b57\u6bb5\u3002\u7528displot\u5206\u6790&#xff1a;<\/p>\n<p>import seaborn as sns<\/p>\n<p>import matplotlib.pyplot as plt<\/p>\n<p># \u57fa\u7840\u7528\u6cd5&#xff1a;\u753b\u6d88\u8d39\u91d1\u989d\u7684\u76f4\u65b9\u56fe<\/p>\n<p>sns.displot(data&#061;user_data, x&#061;&#034;amount&#034;, bins&#061;30)<\/p>\n<p>plt.title(&#034;\u7528\u6237\u6d88\u8d39\u91d1\u989d\u5206\u5e03&#034;)<\/p>\n<p># \u8fdb\u9636&#xff1a;\u6309\u7528\u6237\u7b49\u7ea7\u5206\u7ec4\u5bf9\u6bd4&#xff08;\u81ea\u52a8\u7528\u4e0d\u540c\u989c\u8272\u533a\u5206&#xff09;<\/p>\n<p>sns.displot(data&#061;user_data, x&#061;&#034;amount&#034;, hue&#061;&#034;level&#034;, bins&#061;30, kind&#061;&#034;hist&#034;)<\/p>\n<p>plt.title(&#034;\u4e0d\u540c\u7b49\u7ea7\u7528\u6237\u7684\u6d88\u8d39\u91d1\u989d\u5206\u5e03&#034;)<\/p>\n<p>\u8fd0\u884c\u540e\u80fd\u76f4\u89c2\u770b\u5230&#xff1a;\u4f1a\u5458\u7528\u6237\u7684\u6d88\u8d39\u91d1\u989d\u96c6\u4e2d\u5728\u66f4\u9ad8\u533a\u95f4&#xff0c;\u4e14\u5206\u5e03\u66f4\u5206\u6563&#xff08;\u8bf4\u660e\u6d88\u8d39\u80fd\u529b\u5dee\u5f02\u5927&#xff09;&#xff1b;\u666e\u901a\u7528\u6237\u5219\u96c6\u4e2d\u5728\u4f4e\u91d1\u989d\u533a\u95f4\u3002\u8fd9\u5c31\u662fdisplot\u7684\u4ef7\u503c \u2014\u2014\u65e0\u9700\u8ba1\u7b97\u5747\u503c\u3001\u65b9\u5dee&#xff0c;\u4e00\u773c\u770b\u51fa\u5206\u7ec4\u5dee\u5f02\u3002<\/p>\n<h4>2\u3001\u00a0kdeplot<\/h4>\n<p>\u76f4\u65b9\u56fe\u867d\u7136\u76f4\u89c2&#xff0c;\u4f46\u5206\u7bb1\u6570\u91cf\u4f1a\u5f71\u54cd\u89c6\u89c9\u6548\u679c&#xff08;\u4e0d\u540c\u5206\u7bb1\u53ef\u80fd\u5f97\u51fa\u4e0d\u540c\u7ed3\u8bba&#xff09;\u3002kdeplot&#xff08;\u6838\u5bc6\u5ea6\u4f30\u8ba1\u56fe&#xff09;\u5219\u901a\u8fc7\u6570\u5b66\u65b9\u6cd5\u751f\u6210\u5e73\u6ed1\u66f2\u7ebf&#xff0c;\u5c55\u793a\u6570\u636e\u7684\u6982\u7387\u5bc6\u5ea6\u5206\u5e03\u2014\u2014 \u66f2\u7ebf\u8d8a\u9ad8&#xff0c;\u8bf4\u660e\u8be5\u533a\u95f4\u6570\u636e\u51fa\u73b0\u7684\u6982\u7387\u8d8a\u5927\u3002<\/p>\n<p>\u6838\u5fc3\u4f18\u52bf&#xff1a;<\/p>\n<ul>\n<li>\u6d88\u9664\u5206\u7bb1\u5e26\u6765\u7684\u8bef\u5dee&#xff0c;\u66f4\u7a33\u5b9a\u5730\u53cd\u6620\u5206\u5e03\u5f62\u72b6<\/li>\n<\/ul>\n<ul>\n<li>\u53ef\u901a\u8fc7fill&#061;True\u586b\u5145\u66f2\u7ebf\u4e0b\u65b9\u533a\u57df&#xff0c;\u589e\u5f3a\u89c6\u89c9\u51b2\u51fb\u529b<\/li>\n<\/ul>\n<ul>\n<li>\u652f\u6301\u591a\u7ec4\u5bf9\u6bd4&#xff08;\u7528hue&#xff09;\u548c\u4e8c\u7ef4\u5206\u5e03&#xff08;\u540c\u65f6\u6307\u5b9ax\u548cy&#xff09;<\/li>\n<\/ul>\n<p>\u5b9e\u6218\u573a\u666f&#xff1a;\u5206\u6790\u7528\u6237\u5e74\u9f84\u4e0e\u6d88\u8d39\u7684\u5173\u7cfb\u5bc6\u5ea6<\/p>\n<p>\u5982\u679c\u60f3\u77e5\u9053 \u201c\u54ea\u4e2a\u5e74\u9f84\u6bb5\u7684\u6d88\u8d39\u91d1\u989d\u6700\u96c6\u4e2d\u201d&#xff0c;\u53ef\u4ee5\u7528\u4e8c\u7ef4kdeplot&#xff1a;<\/p>\n<p># \u4e8c\u7ef4\u6838\u5bc6\u5ea6\u56fe&#xff1a;x&#061;\u5e74\u9f84&#xff0c;y&#061;\u6d88\u8d39\u91d1\u989d<\/p>\n<p>sns.kdeplot(<\/p>\n<p>data&#061;user_data,<\/p>\n<p>x&#061;&#034;age&#034;,<\/p>\n<p>y&#061;&#034;amount&#034;,<\/p>\n<p>fill&#061;True, # \u586b\u5145\u989c\u8272&#xff08;\u989c\u8272\u8d8a\u6df1\u8868\u793a\u5bc6\u5ea6\u8d8a\u9ad8&#xff09;<\/p>\n<p>cmap&#061;&#034;Blues&#034; # \u7528\u84dd\u8272\u7cfb\u6e10\u53d8&#xff08;\u6d45\u2192\u6df1\u8868\u793a\u5bc6\u5ea6\u4f4e\u2192\u9ad8&#xff09;<\/p>\n<p>)<\/p>\n<p>plt.title(&#034;\u5e74\u9f84\u4e0e\u6d88\u8d39\u91d1\u989d\u7684\u5bc6\u5ea6\u5206\u5e03&#034;)<\/p>\n<p>\u7ed3\u679c\u4e2d&#xff0c;\u6df1\u84dd\u8272\u533a\u57df\u5bf9\u5e94\u7684 \u201c30-40 \u5c81 &#043; 500-1000 \u5143\u201d \u5c31\u662f\u6700\u5bc6\u96c6\u7684\u7ec4\u5408 \u2014\u2014 \u8fd9\u6bd4\u5355\u72ec\u770b\u5e74\u9f84\u5206\u5e03\u548c\u6d88\u8d39\u5206\u5e03\u66f4\u6709\u4ef7\u503c&#xff0c;\u80fd\u76f4\u63a5\u5b9a\u4f4d\u6838\u5fc3\u7528\u6237\u7279\u5f81\u3002<\/p>\n<h4>3\u3001ecdfplot<\/h4>\n<p>\u5f53\u4e1a\u52a1\u65b9\u95ee \u201c\u6709\u591a\u5c11\u7528\u6237\u6d88\u8d39\u91d1\u989d\u4f4e\u4e8e 200 \u5143&#xff1f;\u201d \u65f6&#xff0c;ecdfplot&#xff08;\u7ecf\u9a8c\u7d2f\u79ef\u5206\u5e03\u51fd\u6570\u56fe&#xff09;\u80fd\u76f4\u63a5\u7ed9\u51fa\u7b54\u6848\u3002\u5b83\u7684\u6a2a\u8f74\u662f\u53d8\u91cf\u503c&#xff0c;\u7eb5\u8f74\u662f \u201c\u5c0f\u4e8e\u7b49\u4e8e\u8be5\u503c\u7684\u6570\u636e\u5360\u6bd4\u201d&#xff08;\u8303\u56f4 0-1&#xff09;\u3002<\/p>\n<p>\u6838\u5fc3\u7528\u6cd5&#xff1a;<\/p>\n<ul>\n<li>\u5feb\u901f\u5224\u65ad\u5206\u4f4d\u6570&#xff08;\u6bd4\u5982\u7eb5\u8f74 0.8 \u5bf9\u5e94\u6a2a\u8f74\u7684\u503c&#xff0c;\u5c31\u662f 80% \u7528\u6237\u7684\u6d88\u8d39\u4e0a\u9650&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u5bf9\u6bd4\u5206\u7ec4\u7d2f\u79ef\u5dee\u5f02&#xff08;\u6bd4\u5982\u4f1a\u5458\u548c\u666e\u901a\u7528\u6237\u7684\u7d2f\u79ef\u66f2\u7ebf\u5dee\u8ddd&#xff09;<\/li>\n<\/ul>\n<p>\u793a\u4f8b\u4ee3\u7801&#xff1a;<\/p>\n<p>sns.ecdfplot(data&#061;user_data, x&#061;&#034;amount&#034;, hue&#061;&#034;level&#034;)<\/p>\n<p>plt.axvline(x&#061;200, color&#061;&#034;red&#034;, linestyle&#061;&#034;&#8211;&#034;) # \u6807\u8bb0200\u5143\u4f4d\u7f6e<\/p>\n<p>plt.axhline(y&#061;0.6, color&#061;&#034;green&#034;, linestyle&#061;&#034;&#8211;&#034;) # \u6807\u8bb060%\u4f4d\u7f6e<\/p>\n<p>\u4ece\u56fe\u4e2d\u53ef\u89c1&#xff1a;\u666e\u901a\u7528\u6237\u7684\u66f2\u7ebf\u5728 200 \u5143\u5904\u5df2\u63a5\u8fd1 0.8&#xff08;80% \u666e\u901a\u7528\u6237\u6d88\u8d39\u4f4e\u4e8e 200 \u5143&#xff09;&#xff0c;\u800c\u4f1a\u5458\u7528\u6237\u5728 200 \u5143\u5904\u4ec5 0.3&#xff08;\u4ec5 30% \u4f1a\u5458\u6d88\u8d39\u4f4e\u4e8e 200 \u5143&#xff09;\u2014\u2014 \u8fd9\u5c31\u662f\u4e1a\u52a1\u9700\u8981\u7684\u7cbe\u51c6\u7ed3\u8bba\u3002<\/p>\n<h3>\u4e09\u3001\u5173\u7cfb\u7c7b\u53ef\u89c6\u5316\u00a0<\/h3>\n<p>\u5f53\u6211\u4eec\u9700\u8981\u5206\u6790 \u201c\u4e24\u4e2a\u53d8\u91cf\u662f\u5426\u76f8\u5173\u201d\u201c\u76f8\u5173\u7a0b\u5ea6\u5982\u4f55\u201d \u65f6&#xff0c;\u5173\u7cfb\u7c7b\u53ef\u89c6\u5316\u662f\u6838\u5fc3\u5de5\u5177\u3002Seaborn \u7684relplot\u548c\u77e9\u9635\u6563\u70b9\u56fe&#xff0c;\u80fd\u8986\u76d6\u4ece \u201c\u53cc\u53d8\u91cf\u201d \u5230 \u201c\u591a\u53d8\u91cf\u201d \u7684\u5173\u7cfb\u63a2\u7d22\u3002<\/p>\n<h4>1\u3001relplot<\/h4>\n<p>relplot\u662f \u201c\u5173\u7cfb\u56fe\u201d \u7684\u96c6\u6210\u5668&#xff0c;\u901a\u8fc7kind\u53c2\u6570\u53ef\u5207\u6362\u6563\u70b9\u56fe&#xff08;scatter&#xff09;\u548c\u7ebf\u56fe&#xff08;line&#xff09;&#xff0c;\u9002\u5408\u5206\u6790 \u201c\u53d8\u91cf A \u968f\u53d8\u91cf B \u53d8\u5316\u7684\u8d8b\u52bf\u201d\u3002<\/p>\n<p>\u6838\u5fc3\u53c2\u6570\u4e0e\u573a\u666f&#xff1a;<\/p>\n<ul>\n<li>x\/y&#xff1a;\u6307\u5b9a\u4e24\u4e2a\u5206\u6790\u53d8\u91cf&#xff08;\u6bd4\u5982 \u201c\u5e7f\u544a\u6295\u5165\u201d \u548c \u201c\u9500\u552e\u989d\u201d&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>kind&#xff1a;scatter&#xff08;\u770b\u5206\u5e03\u5173\u7cfb&#xff09;\u6216line&#xff08;\u770b\u8d8b\u52bf\u53d8\u5316&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>size&#xff1a;\u7528\u70b9\u7684\u5927\u5c0f\u8868\u793a\u7b2c\u4e09\u4e2a\u53d8\u91cf&#xff08;\u6bd4\u5982\u7528\u70b9\u5927\u5c0f\u8868\u793a \u201c\u7528\u6237\u6570\u91cf\u201d&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>hue&#xff1a;\u6309\u5206\u7c7b\u53d8\u91cf\u5206\u7ec4&#xff08;\u6bd4\u5982\u6309 \u201c\u5730\u533a\u201d \u5206\u7ec4\u770b\u8d8b\u52bf&#xff09;<\/li>\n<\/ul>\n<p>\u5b9e\u6218&#xff1a;\u5206\u6790\u5e7f\u544a\u6295\u5165\u4e0e\u9500\u552e\u989d\u7684\u5173\u7cfb<\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709 \u201c\u6708\u5ea6\u5e7f\u544a\u6295\u5165\u201d \u548c \u201c\u6708\u5ea6\u9500\u552e\u989d\u201d \u6570\u636e&#xff0c;\u7528relplot\u63a2\u7d22\u5173\u7cfb&#xff1a;<\/p>\n<p># \u57fa\u7840\u6563\u70b9\u56fe&#xff1a;\u770b\u5e7f\u544a\u6295\u5165\u4e0e\u9500\u552e\u989d\u7684\u5206\u5e03<\/p>\n<p>sns.relplot(<\/p>\n<p>data&#061;ad_data,<\/p>\n<p>x&#061;&#034;ad_spend&#034;,<\/p>\n<p>y&#061;&#034;sales&#034;,<\/p>\n<p>kind&#061;&#034;scatter&#034;,<\/p>\n<p>size&#061;&#034;user_count&#034;, # \u70b9\u5927\u5c0f\u8868\u793a\u7528\u6237\u6570<\/p>\n<p>sizes&#061;(50, 200) # \u63a7\u5236\u70b9\u5927\u5c0f\u8303\u56f4<\/p>\n<p>)<\/p>\n<p># \u7ebf\u56fe&#xff1a;\u6309\u5b63\u5ea6\u770b\u8d8b\u52bf&#xff08;\u6dfb\u52a0hue\u5206\u7ec4&#xff09;<\/p>\n<p>sns.relplot(<\/p>\n<p>data&#061;ad_data,<\/p>\n<p>x&#061;&#034;month&#034;,<\/p>\n<p>y&#061;&#034;sales&#034;,<\/p>\n<p>kind&#061;&#034;line&#034;,<\/p>\n<p>hue&#061;&#034;quarter&#034;, # \u6309\u5b63\u5ea6\u5206\u7ec4<\/p>\n<p>marker&#061;&#034;o&#034; # \u663e\u793a\u6570\u636e\u70b9<\/p>\n<p>)<\/p>\n<p>\u6563\u70b9\u56fe\u4e2d&#xff0c;\u82e5\u70b9\u5448\u4ece\u5de6\u4e0b\u5230\u53f3\u4e0a\u7684\u5206\u5e03&#xff0c;\u8bf4\u660e\u5e7f\u544a\u6295\u5165\u4e0e\u9500\u552e\u989d\u6b63\u76f8\u5173&#xff1b;\u7ebf\u56fe\u80fd\u770b\u51fa\u4e0d\u540c\u5b63\u5ea6\u7684\u9500\u552e\u989d\u8d8b\u52bf\u5dee\u5f02&#xff08;\u6bd4\u5982 Q4 \u589e\u957f\u66f4\u5feb&#xff09;\u3002<\/p>\n<h4>2\u3001\u77e9\u9635\u6563\u70b9\u56fe&#xff1a;\u591a\u53d8\u91cf\u5173\u7cfb\u7684 \u201c\u5168\u666f\u5730\u56fe\u201d<\/h4>\n<p>\u5f53\u6709 3 \u4e2a\u4ee5\u4e0a\u53d8\u91cf\u65f6&#xff08;\u6bd4\u5982 \u201c\u5e74\u9f84\u3001\u6536\u5165\u3001\u6d88\u8d39\u3001\u6ee1\u610f\u5ea6\u201d&#xff09;&#xff0c;\u77e9\u9635\u6563\u70b9\u56fe&#xff08;pairplot&#xff09;\u80fd\u4e00\u6b21\u6027\u5c55\u793a\u6240\u6709\u53d8\u91cf\u95f4\u7684\u4e24\u4e24\u5173\u7cfb&#xff0c;\u662f\u63a2\u7d22\u6027\u5206\u6790\u7684\u9ad8\u6548\u5de5\u5177\u3002<\/p>\n<p>\u6838\u5fc3\u903b\u8f91&#xff1a;<\/p>\n<ul>\n<li>\u5bf9\u89d2\u7ebf&#xff1a;\u6bcf\u4e2a\u53d8\u91cf\u7684\u5206\u5e03&#xff08;\u76f4\u65b9\u56fe\u6216\u6838\u5bc6\u5ea6\u56fe&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u975e\u5bf9\u89d2\u7ebf&#xff1a;\u4e24\u4e2a\u53d8\u91cf\u7684\u6563\u70b9\u56fe&#xff08;\u5c55\u793a\u76f8\u5173\u6027&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u53ef\u901a\u8fc7hue\u6309\u5206\u7c7b\u53d8\u91cf\u7740\u8272&#xff08;\u6bd4\u5982\u6309 \u201c\u4f1a\u5458\u7b49\u7ea7\u201d \u533a\u5206&#xff09;<\/li>\n<\/ul>\n<p>\u793a\u4f8b\u4ee3\u7801\u4e0e\u89e3\u8bfb&#xff1a;<\/p>\n<p># \u5bf9\u7528\u6237\u6570\u636e\u76844\u4e2a\u53d8\u91cf\u753b\u77e9\u9635\u6563\u70b9\u56fe<\/p>\n<p>sns.pairplot(<\/p>\n<p>data&#061;user_data,<\/p>\n<p>vars&#061;[&#034;age&#034;, &#034;income&#034;, &#034;spend&#034;, &#034;satisfaction&#034;], # \u6307\u5b9a\u53d8\u91cf<\/p>\n<p>hue&#061;&#034;level&#034;, # \u6309\u7528\u6237\u7b49\u7ea7\u7740\u8272<\/p>\n<p>diag_kind&#061;&#034;kde&#034; # \u5bf9\u89d2\u7ebf\u7528\u6838\u5bc6\u5ea6\u56fe&#xff08;\u66f4\u5e73\u6ed1&#xff09;<\/p>\n<p>)<\/p>\n<p>\u4ece\u7ed3\u679c\u4e2d\u80fd\u5feb\u901f\u53d1\u73b0&#xff1a;<\/p>\n<ul>\n<li>\u6536\u5165&#xff08;income&#xff09;\u548c\u6d88\u8d39&#xff08;spend&#xff09;\u7684\u6563\u70b9\u56fe\u5448\u5f3a\u6b63\u76f8\u5173&#xff08;\u70b9\u5bc6\u96c6\u5206\u5e03\u5728\u5bf9\u89d2\u7ebf&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u5e74\u9f84\u4e0e\u6ee1\u610f\u5ea6\u7684\u6563\u70b9\u56fe\u65e0\u660e\u663e\u89c4\u5f8b&#xff08;\u70b9\u968f\u673a\u5206\u5e03&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u4f1a\u5458\u7528\u6237&#xff08;\u67d0\u989c\u8272&#xff09;\u5728\u6536\u5165\u548c\u6d88\u8d39\u4e0a\u6574\u4f53\u9ad8\u4e8e\u666e\u901a\u7528\u6237<\/li>\n<\/ul>\n<p>\u8fd9\u79cd \u201c\u5168\u666f\u5f0f\u201d \u89c6\u56fe&#xff0c;\u80fd\u5e2e\u6211\u4eec\u5feb\u901f\u9501\u5b9a\u503c\u5f97\u6df1\u5165\u5206\u6790\u7684\u53d8\u91cf\u5173\u7cfb\u3002<\/p>\n<h3>\u4e09\u3001\u5206\u7c7b\u7c7b\u53ef\u89c6\u5316<\/h3>\n<p>\u5f53\u6570\u636e\u5305\u542b\u5206\u7c7b\u53d8\u91cf&#xff08;\u6bd4\u5982 \u201c\u6027\u522b\u201d\u201c\u4ea7\u54c1\u7c7b\u578b\u201d\u201c\u5730\u533a\u201d&#xff09;\u65f6&#xff0c;\u9700\u8981\u5206\u6790 \u201c\u4e0d\u540c\u7c7b\u522b\u5728\u67d0\u4e2a\u6307\u6807\u4e0a\u7684\u5dee\u5f02\u201d\u3002Seaborn \u7684catplot\u652f\u6301\u5c0f\u63d0\u7434\u56fe\u3001\u7bb1\u7ebf\u56fe\u3001\u8702\u7fa4\u56fe\u7b49&#xff0c;\u80fd\u4ece\u4e0d\u540c\u89d2\u5ea6\u5c55\u793a\u5206\u7c7b\u6570\u636e\u7279\u5f81\u3002<\/p>\n<h4>1\u3001catplot<\/h4>\n<p>catplot\u662f\u5206\u7c7b\u56fe\u7684\u96c6\u6210\u5668&#xff0c;\u901a\u8fc7kind\u53c2\u6570\u5207\u6362\u4e0d\u540c\u7c7b\u578b&#xff0c;\u6838\u5fc3\u4ef7\u503c\u662f \u201c\u5c06\u5206\u7c7b\u53d8\u91cf\u4e0e\u6570\u503c\u53d8\u91cf\u5173\u8054&#xff0c;\u76f4\u89c2\u5c55\u793a\u7ec4\u95f4\u5dee\u5f02\u201d\u3002<\/p>\n<h5>1.1\u3001\u00a0\u7bb1\u7ebf\u56fe&#xff08;box&#xff09;&#xff1a;\u770b\u5206\u5e03\u7684 \u201c\u7edf\u8ba1\u9aa8\u67b6\u201d<\/h5>\n<p>\u7bb1\u7ebf\u56fe\u901a\u8fc7\u56db\u5206\u4f4d\u6570\u5c55\u793a\u6570\u636e\u5206\u5e03&#xff1a;<\/p>\n<ul>\n<li>\u7bb1\u4f53&#xff1a;\u4ece\u4e0b\u5230\u4e0a\u5bf9\u5e94\u7b2c 25%&#xff08;Q1&#xff09;\u3001\u4e2d\u4f4d\u6570&#xff08;Q2&#xff09;\u3001\u7b2c 75%&#xff08;Q3&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u987b\u7ebf&#xff1a;\u5ef6\u4f38\u5230 Q1-1.5\u00d7IQR \u548c Q3&#043;1.5\u00d7IQR&#xff08;IQR&#061;Q3-Q1&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u8d85\u51fa\u987b\u7ebf\u7684\u70b9&#xff1a;\u6f5c\u5728\u6781\u7aef\u503c<\/li>\n<\/ul>\n<p>\u9002\u5408\u573a\u666f&#xff1a;\u5feb\u901f\u6bd4\u8f83\u591a\u7ec4\u6570\u636e\u7684\u96c6\u4e2d\u8d8b\u52bf\u548c\u79bb\u6563\u7a0b\u5ea6&#xff08;\u6bd4\u5982\u4e0d\u540c\u4ea7\u54c1\u7684\u8bc4\u5206\u5206\u5e03&#xff09;\u3002<\/p>\n<h5>1.2\u3001\u00a0\u5c0f\u63d0\u7434\u56fe&#xff08;violin&#xff09;&#xff1a;\u7ed3\u5408 \u201c\u5bc6\u5ea6\u201d \u7684\u5206\u5e03\u5c55\u793a<\/h5>\n<p>\u5c0f\u63d0\u7434\u56fe\u662f \u201c\u7bb1\u7ebf\u56fe &#043; \u6838\u5bc6\u5ea6\u56fe\u201d \u7684\u7ed3\u5408&#xff1a;<\/p>\n<ul>\n<li>\u5f62\u72b6\u5bbd\u5ea6\u8868\u793a\u8be5\u4f4d\u7f6e\u7684\u6982\u7387\u5bc6\u5ea6&#xff08;\u5bbd &#061; \u6570\u636e\u5bc6\u96c6&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u4e2d\u95f4\u7684\u7ec6\u7ebf\u548c\u767d\u70b9&#xff1a;\u5bf9\u5e94\u7bb1\u7ebf\u56fe\u7684\u4e2d\u4f4d\u6570\u548c\u56db\u5206\u4f4d<\/li>\n<\/ul>\n<p>\u9002\u5408\u573a\u666f&#xff1a;\u65e2\u60f3\u77e5\u9053\u7edf\u8ba1\u5206\u4f4d\u6570&#xff0c;\u53c8\u60f3\u4e86\u89e3\u5206\u5e03\u5f62\u72b6&#xff08;\u6bd4\u5982\u5206\u6790\u4e0d\u540c\u5e74\u9f84\u6bb5\u7528\u6237\u7684\u6d88\u8d39\u5206\u5e03&#xff0c;\u770b\u662f\u5426\u6709\u591a\u4e2a\u5cf0\u503c&#xff09;\u3002<\/p>\n<h5>1.3\u3001\u8702\u7fa4\u56fe&#xff08;swarm&#xff09;&#xff1a;\u4fdd\u7559\u539f\u59cb\u6570\u636e\u7684 \u201c\u5fae\u89c2\u89c6\u89d2\u201d<\/h5>\n<p>\u8702\u7fa4\u56fe\u7528\u70b9\u7684\u5206\u5e03\u5c55\u793a\u539f\u59cb\u6570\u636e&#xff08;\u907f\u514d\u91cd\u53e0&#xff09;&#xff0c;\u80fd\u770b\u5230\u6bcf\u4e2a\u6570\u636e\u70b9\u7684\u4f4d\u7f6e\u3002\u9002\u5408\u573a\u666f&#xff1a;\u6570\u636e\u91cf\u4e0d\u5927&#xff08;\u51e0\u767e\u4e2a&#xff09;\u65f6&#xff0c;\u60f3\u4fdd\u7559\u539f\u59cb\u6570\u636e\u4fe1\u606f&#xff08;\u6bd4\u5982\u5c55\u793a 50 \u4e2a\u7528\u6237\u7684\u6d4b\u8bd5\u5206\u6570&#xff0c;\u540c\u65f6\u6309\u73ed\u7ea7\u5206\u7ec4&#xff09;\u3002<\/p>\n<p>\u5b9e\u6218\u5bf9\u6bd4&#xff1a;\u4e0d\u540c\u4ea7\u54c1\u7684\u7528\u6237\u8bc4\u5206\u5206\u6790<\/p>\n<p>\u5047\u8bbe\u6211\u4eec\u6709 3 \u6b3e\u4ea7\u54c1\u7684\u7528\u6237\u8bc4\u5206\u6570\u636e&#xff08;product_ratings&#xff09;&#xff0c;\u7528catplot\u5bf9\u6bd4&#xff1a;<\/p>\n<p># \u7bb1\u7ebf\u56fe&#xff1a;\u770b\u8bc4\u5206\u7684\u56db\u5206\u4f4d\u5dee\u5f02<\/p>\n<p>sns.catplot(data&#061;product_ratings, x&#061;&#034;product&#034;, y&#061;&#034;rating&#034;, kind&#061;&#034;box&#034;)<\/p>\n<p># \u5c0f\u63d0\u7434\u56fe&#xff1a;\u770b\u8bc4\u5206\u5206\u5e03\u5f62\u72b6<\/p>\n<p>sns.catplot(data&#061;product_ratings, x&#061;&#034;product&#034;, y&#061;&#034;rating&#034;, kind&#061;&#034;violin&#034;)<\/p>\n<p># \u8702\u7fa4\u56fe&#xff1a;\u770b\u539f\u59cb\u8bc4\u5206\u6570\u636e&#xff08;\u6570\u636e\u91cf&lt;500\u65f6\u9002\u7528&#xff09;<\/p>\n<p>sns.catplot(data&#061;product_ratings, x&#061;&#034;product&#034;, y&#061;&#034;rating&#034;, kind&#061;&#034;swarm&#034;)<\/p>\n<p>\u5bf9\u6bd4\u7ed3\u679c\u89e3\u8bfb&#xff1a;<\/p>\n<ul>\n<li>\u7bb1\u7ebf\u56fe\u663e\u793a\u4ea7\u54c1 A \u7684\u4e2d\u4f4d\u6570\u6700\u9ad8&#xff0c;\u4f46\u56db\u5206\u4f4d\u8303\u56f4\u5927&#xff08;\u8bc4\u5206\u6ce2\u52a8\u5927&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u5c0f\u63d0\u7434\u56fe\u663e\u793a\u4ea7\u54c1 B \u7684\u8bc4\u5206\u5728 4-5 \u5206\u6709\u4e24\u4e2a\u5bc6\u5ea6\u5cf0\u503c&#xff08;\u53ef\u80fd\u5bf9\u5e94\u4e24\u7c7b\u7528\u6237&#xff09;<\/li>\n<\/ul>\n<ul>\n<li>\u8702\u7fa4\u56fe\u663e\u793a\u4ea7\u54c1 C \u6709\u591a\u4e2a\u6781\u7aef\u4f4e\u5206&#xff08;\u9700\u6392\u67e5\u662f\u5426\u4e3a\u6076\u610f\u8bc4\u4ef7&#xff09;<\/li>\n<\/ul>\n<h3>\u6700\u540e\u5c0f\u7ed3<\/h3>\n<p>\u638c\u63e1 Seaborn \u7edf\u8ba1\u53ef\u89c6\u5316\u7684\u6838\u5fc3&#xff0c;\u4e0d\u662f\u8bb0\u4f4f\u6240\u6709\u51fd\u6570&#xff0c;\u800c\u662f\u7406\u89e3 \u201c\u6570\u636e\u5173\u7cfb\u7c7b\u578b\u2192\u5de5\u5177\u9009\u62e9\u201d \u7684\u903b\u8f91&#xff1a;<\/p>\n<table border=\"1\">\n<tbody>\n<tr>\n<td>\n<p>\u5206\u6790\u76ee\u6807<\/p>\n<\/td>\n<td>\n<p>\u63a8\u8350\u5de5\u5177<\/p>\n<\/td>\n<td>\n<p>\u6838\u5fc3\u4f18\u52bf<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5355\u53d8\u91cf\u5206\u5e03&#xff08;\u96c6\u4e2d \/ \u79bb\u6563&#xff09;<\/p>\n<\/td>\n<td>\n<p>displot&#xff08;hist\/kde&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u5feb\u901f\u5b9a\u4f4d\u6570\u636e\u5206\u5e03\u7279\u5f81<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u7d2f\u79ef\u6982\u7387\u6216\u5206\u4f4d\u6570<\/p>\n<\/td>\n<td>\n<p>ecdfplot<\/p>\n<\/td>\n<td>\n<p>\u76f4\u63a5\u56de\u7b54 \u201c\u591a\u5c11\u6570\u636e\u4f4e\u4e8e X\u201d<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u53cc\u53d8\u91cf\u76f8\u5173\u8d8b\u52bf<\/p>\n<\/td>\n<td>\n<p>relplot&#xff08;scatter\/line&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u7075\u6d3b\u5207\u6362\u5206\u5e03\u4e0e\u8d8b\u52bf\u5c55\u793a<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u591a\u53d8\u91cf\u5173\u7cfb\u5168\u666f<\/p>\n<\/td>\n<td>\n<p>\u77e9\u9635\u6563\u70b9\u56fe&#xff08;pairplot&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u4e00\u6b21\u6027\u63a2\u7d22\u6240\u6709\u53d8\u91cf\u5173\u8054<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5206\u7c7b\u7ec4\u7684\u7edf\u8ba1\u5dee\u5f02<\/p>\n<\/td>\n<td>\n<p>\u7bb1\u7ebf\u56fe&#xff08;catplot(kind&#061;&#034;box&#034;)&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u9ad8\u6548\u5c55\u793a\u56db\u5206\u4f4d\u4e0e\u6781\u7aef\u503c<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5206\u7c7b\u7ec4\u7684\u5206\u5e03\u5f62\u72b6<\/p>\n<\/td>\n<td>\n<p>\u5c0f\u63d0\u7434\u56fe&#xff08;catplot(kind&#061;&#034;violin&#034;)&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u7ed3\u5408\u5bc6\u5ea6\u4e0e\u7edf\u8ba1\u5206\u4f4d\u6570<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>\u5206\u7c7b\u7ec4\u7684\u539f\u59cb\u6570\u636e<\/p>\n<\/td>\n<td>\n<p>\u8702\u7fa4\u56fe&#xff08;catplot(kind&#061;&#034;swarm&#034;)&#xff09;<\/p>\n<\/td>\n<td>\n<p>\u4fdd\u7559\u6570\u636e\u539f\u59cb\u5f62\u6001&#xff08;\u5c0f\u6570\u636e&#xff09;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53ef\u89c6\u5316\u7684\u7ec8\u6781\u76ee\u6807\u662f \u201c\u4f20\u9012\u6d1e\u5bdf\u201d&#xff0c;\u800c\u975e\u8ffd\u6c42\u590d\u6742\u56fe\u8868\u3002\u5148\u7528displot\/relplot\u505a\u63a2\u7d22&#xff0c;\u518d\u6839\u636e\u53d1\u73b0\u7528\u9488\u5bf9\u6027\u5de5\u5177\u6df1\u5316&#xff0c;\u624d\u80fd\u8ba9\u6570\u636e\u771f\u6b63 \u201c\u8bf4\u8bdd\u201d\u3002\u672a\u5b8c\u5f85\u7eed&#8230;&#8230;.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb369\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790Seaborn\u7edf\u8ba1\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u91cd\u70b9\u4ecb\u7ecd\u5176\u5728\u6570\u636e\u63a2\u7d22\u4e2d\u7684\u6838\u5fc3\u5e94\u7528\u3002\u901a\u8fc7\u5206\u5e03\u7c7b\uff08displot\/kdeplot\/ecdfplot\uff09\u3001\u5173\u7cfb\u7c7b\uff08relplot\/pairplot\uff09\u548c\u5206\u7c7b\u7c7b\uff08catplot\uff09\u4e09\u5927\u573a\u666f\uff0c\u5c55\u73b0Seaborn\u5982\u4f55\u5c06\u7edf\u8ba1\u8ba1\u7b97\u4e0e\u53ef\u89c6\u5316\u6df1\u5ea6\u878d\u5408\u3002\u6587\u7ae0\u5f3a\u8c03\u7edf\u8ba1\u53ef\u89c6\u5316\u4e0e\u666e\u901a\u53ef\u89c6\u5316\u7684\u672c\u8d28\u533a\u522b\u5728\u4e8e&quot;\u63d0\u70bc\u6570\u636e\u89c4\u5f8b&quot;\u800c\u975e&quot;\u8fd8\u539f\u6570\u636e\u672c\u8eab&quot;\uff0c\u5e76\u901a\u8fc7\u7535\u5546\u7528\u6237\u6570\u636e\u5206\u6790\u7b49\u6848\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u5feb\u901f\u83b7\u5f97\u5173\u952e\u4e1a\u52a1\u6d1e\u5bdf\u3002\u6700\u540e\u603b\u7ed3\u4e0d\u540c\u5206\u6790\u76ee\u6807\u5bf9\u5e94\u7684\u6700\u4f73\u53ef\u89c6\u5316\u5de5\u5177\u9009\u62e9\u903b\u8f91\uff0c\u6307\u51fa\u53ef\u89c6\u5316\u5e94<\/p>\n","protected":false},"author":2,"featured_media":47442,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[81,4543],"topic":[],"class_list":["post-47443","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-python","tag-4543"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/47443.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb369\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790Seaborn\u7edf\u8ba1\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u91cd\u70b9\u4ecb\u7ecd\u5176\u5728\u6570\u636e\u63a2\u7d22\u4e2d\u7684\u6838\u5fc3\u5e94\u7528\u3002\u901a\u8fc7\u5206\u5e03\u7c7b\uff08displot\/kdeplot\/ecdfplot\uff09\u3001\u5173\u7cfb\u7c7b\uff08relplot\/pairplot\uff09\u548c\u5206\u7c7b\u7c7b\uff08catplot\uff09\u4e09\u5927\u573a\u666f\uff0c\u5c55\u73b0Seaborn\u5982\u4f55\u5c06\u7edf\u8ba1\u8ba1\u7b97\u4e0e\u53ef\u89c6\u5316\u6df1\u5ea6\u878d\u5408\u3002\u6587\u7ae0\u5f3a\u8c03\u7edf\u8ba1\u53ef\u89c6\u5316\u4e0e\u666e\u901a\u53ef\u89c6\u5316\u7684\u672c\u8d28\u533a\u522b\u5728\u4e8e&quot;\u63d0\u70bc\u6570\u636e\u89c4\u5f8b&quot;\u800c\u975e&quot;\u8fd8\u539f\u6570\u636e\u672c\u8eab&quot;\uff0c\u5e76\u901a\u8fc7\u7535\u5546\u7528\u6237\u6570\u636e\u5206\u6790\u7b49\u6848\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u5feb\u901f\u83b7\u5f97\u5173\u952e\u4e1a\u52a1\u6d1e\u5bdf\u3002\u6700\u540e\u603b\u7ed3\u4e0d\u540c\u5206\u6790\u76ee\u6807\u5bf9\u5e94\u7684\u6700\u4f73\u53ef\u89c6\u5316\u5de5\u5177\u9009\u62e9\u903b\u8f91\uff0c\u6307\u51fa\u53ef\u89c6\u5316\u5e94\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/47443.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T23:52:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729235157-68895e9de265b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47443.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/47443.html\",\"name\":\"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T23:52:00+00:00\",\"dateModified\":\"2025-07-29T23:52:00+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/47443.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/47443.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/47443.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/47443.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb369\u6b21\uff0c\u70b9\u8d5e10\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u672c\u6587\u6df1\u5165\u89e3\u6790Seaborn\u7edf\u8ba1\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u91cd\u70b9\u4ecb\u7ecd\u5176\u5728\u6570\u636e\u63a2\u7d22\u4e2d\u7684\u6838\u5fc3\u5e94\u7528\u3002\u901a\u8fc7\u5206\u5e03\u7c7b\uff08displot\/kdeplot\/ecdfplot\uff09\u3001\u5173\u7cfb\u7c7b\uff08relplot\/pairplot\uff09\u548c\u5206\u7c7b\u7c7b\uff08catplot\uff09\u4e09\u5927\u573a\u666f\uff0c\u5c55\u73b0Seaborn\u5982\u4f55\u5c06\u7edf\u8ba1\u8ba1\u7b97\u4e0e\u53ef\u89c6\u5316\u6df1\u5ea6\u878d\u5408\u3002\u6587\u7ae0\u5f3a\u8c03\u7edf\u8ba1\u53ef\u89c6\u5316\u4e0e\u666e\u901a\u53ef\u89c6\u5316\u7684\u672c\u8d28\u533a\u522b\u5728\u4e8e&quot;\u63d0\u70bc\u6570\u636e\u89c4\u5f8b&quot;\u800c\u975e&quot;\u8fd8\u539f\u6570\u636e\u672c\u8eab&quot;\uff0c\u5e76\u901a\u8fc7\u7535\u5546\u7528\u6237\u6570\u636e\u5206\u6790\u7b49\u6848\u4f8b\uff0c\u6f14\u793a\u5982\u4f55\u5feb\u901f\u83b7\u5f97\u5173\u952e\u4e1a\u52a1\u6d1e\u5bdf\u3002\u6700\u540e\u603b\u7ed3\u4e0d\u540c\u5206\u6790\u76ee\u6807\u5bf9\u5e94\u7684\u6700\u4f73\u53ef\u89c6\u5316\u5de5\u5177\u9009\u62e9\u903b\u8f91\uff0c\u6307\u51fa\u53ef\u89c6\u5316\u5e94","og_url":"https:\/\/www.wsisp.com\/helps\/47443.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T23:52:00+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729235157-68895e9de265b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/47443.html","url":"https:\/\/www.wsisp.com\/helps\/47443.html","name":"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T23:52:00+00:00","dateModified":"2025-07-29T23:52:00+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/47443.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/47443.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/47443.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8001\u7801\u519c\u548c\u4f60\u4e00\u8d77\u5b66AI\uff1aPython\u7cfb\u5217-Seaborn \u6838\u5fc3\u6280\u5de7"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=47443"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/47443\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/47442"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=47443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=47443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=47443"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=47443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}