{"id":1006834,"date":"2024-12-27T10:48:01","date_gmt":"2024-12-27T02:48:01","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1006834.html"},"modified":"2024-12-27T10:48:03","modified_gmt":"2024-12-27T02:48:03","slug":"python%e5%a6%82%e4%bd%95%e5%81%9a%e6%8a%a5%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1006834.html","title":{"rendered":"python\u5982\u4f55\u505a\u62a5\u8868"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082812\/1dba466c-a857-4baa-ac96-b9760ce2eb91.webp\" alt=\"python\u5982\u4f55\u505a\u62a5\u8868\" \/><\/p>\n<p><p> <strong>Python\u5236\u4f5c\u62a5\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528pandas\u5904\u7406\u6570\u636e\u3001\u5229\u7528matplotlib\u6216seaborn\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\u3001\u901a\u8fc7openpyxl\u6216xlwings\u64cd\u4f5cExcel\u6587\u4ef6\u3001\u501f\u52a9reportlab\u751f\u6210PDF\u62a5\u8868\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528pandas\u5e93\u6765\u5904\u7406\u548c\u6574\u7406\u6570\u636e\u662f\u6700\u57fa\u7840\u4e14\u6700\u91cd\u8981\u7684\u4e00\u6b65\u3002pandas\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u5904\u7406\u80fd\u529b\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u6570\u636e\u6e05\u6d17\u3001\u53d8\u6362\u548c\u5206\u6790\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5982\u4f55\u4f7f\u7528Python\u5236\u4f5c\u62a5\u8868\uff0c\u6db5\u76d6\u6570\u636e\u5904\u7406\u3001\u53ef\u89c6\u5316\u548c\u751f\u6210\u62a5\u8868\u7684\u5177\u4f53\u6b65\u9aa4\u548c\u5de5\u5177\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001PANDAS\u8fdb\u884c\u6570\u636e\u5904\u7406<\/p>\n<\/p>\n<p><p>pandas\u662fPython\u4e2d\u6700\u53d7\u6b22\u8fce\u7684\u6570\u636e\u5904\u7406\u5e93\u4e4b\u4e00\uff0c\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u7ed3\u6784\u548c\u5de5\u5177\u6765\u7b80\u5316\u6570\u636e\u5206\u6790\u4efb\u52a1\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6570\u636e\u8bfb\u53d6\u548c\u6e05\u6d17<\/strong><\/li>\n<\/ol>\n<p><p>pandas\u652f\u6301\u4ece\u591a\u79cd\u6570\u636e\u6e90\u8bfb\u53d6\u6570\u636e\uff0c\u5305\u62ecCSV\u3001Excel\u3001SQL\u6570\u636e\u5e93\u7b49\u3002\u8bfb\u53d6\u6570\u636e\u540e\uff0c\u901a\u5e38\u9700\u8981\u5bf9\u6570\u636e\u8fdb\u884c\u6e05\u6d17\u548c\u6574\u7406\u3002\u8fd9\u53ef\u80fd\u5305\u62ec\u5220\u9664\u7f3a\u5931\u503c\u3001\u5904\u7406\u5f02\u5e38\u503c\u3001\u683c\u5f0f\u5316\u65e5\u671f\u7b49\u3002\u5229\u7528pandas\u7684<code>DataFrame<\/code>\u5bf9\u8c61\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u8fdb\u884c\u8fd9\u4e9b\u64cd\u4f5c\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u8bfb\u53d6CSV\u6587\u4ef6<\/strong><\/h2>\n<p>df = pd.read_csv(&#39;data.csv&#39;)<\/p>\n<h2><strong>\u5220\u9664\u7f3a\u5931\u503c<\/strong><\/h2>\n<p>df.dropna(inplace=True)<\/p>\n<h2><strong>\u683c\u5f0f\u5316\u65e5\u671f<\/strong><\/h2>\n<p>df[&#39;date&#39;] = pd.to_datetime(df[&#39;date&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6570\u636e\u53d8\u6362\u548c\u5206\u6790<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u6570\u636e\u6e05\u6d17\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528pandas\u8fdb\u884c\u5404\u79cd\u6570\u636e\u53d8\u6362\u548c\u5206\u6790\u64cd\u4f5c\u3002\u4f8b\u5982\uff0c\u5206\u7ec4\u805a\u5408\u3001\u900f\u89c6\u8868\u3001\u5408\u5e76\u6570\u636e\u96c6\u7b49\u3002pandas\u63d0\u4f9b\u4e86\u7b80\u5355\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u5b8c\u6210\u8fd9\u4e9b\u4efb\u52a1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5206\u7ec4\u805a\u5408<\/p>\n<p>grouped = df.groupby(&#39;category&#39;).sum()<\/p>\n<h2><strong>\u900f\u89c6\u8868<\/strong><\/h2>\n<p>pivot_table = df.pivot_table(values=&#39;sales&#39;, index=&#39;month&#39;, columns=&#39;category&#39;, aggfunc=&#39;sum&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001MATPLOTLIB\u548cSEABORN\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316<\/p>\n<\/p>\n<p><p>\u6570\u636e\u53ef\u89c6\u5316\u662f\u62a5\u8868\u5236\u4f5c\u4e2d\u7684\u91cd\u8981\u90e8\u5206\uff0cmatplotlib\u548cseaborn\u662fPython\u4e2d\u6700\u5e38\u7528\u7684\u53ef\u89c6\u5316\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>MATPLOTLIB<\/strong><\/li>\n<\/ol>\n<p><p>matplotlib\u662fPython\u6700\u57fa\u7840\u7684\u7ed8\u56fe\u5e93\uff0c\u53ef\u4ee5\u521b\u5efa\u9759\u6001\u3001\u52a8\u6001\u548c\u4ea4\u4e92\u5f0f\u56fe\u5f62\u3002\u5b83\u53ef\u4ee5\u7ed8\u5236\u591a\u79cd\u7c7b\u578b\u7684\u56fe\u8868\uff0c\u5305\u62ec\u6298\u7ebf\u56fe\u3001\u67f1\u72b6\u56fe\u3001\u6563\u70b9\u56fe\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import matplotlib.pyplot as plt<\/p>\n<h2><strong>\u7ed8\u5236\u67f1\u72b6\u56fe<\/strong><\/h2>\n<p>plt.figure(figsize=(10, 6))<\/p>\n<p>plt.bar(grouped.index, grouped[&#39;sales&#39;])<\/p>\n<p>plt.title(&#39;Sales by Category&#39;)<\/p>\n<p>plt.xlabel(&#39;Category&#39;)<\/p>\n<p>plt.ylabel(&#39;Sales&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>SEABORN<\/strong><\/li>\n<\/ol>\n<p><p>seaborn\u662f\u5728matplotlib\u57fa\u7840\u4e0a\u8fdb\u884c\u5c01\u88c5\u7684\u9ad8\u7ea7\u53ef\u89c6\u5316\u5e93\uff0c\u63d0\u4f9b\u4e86\u66f4\u4e3a\u7b80\u6d01\u548c\u7f8e\u89c2\u7684\u56fe\u5f62\u8f93\u51fa\u3002\u5b83\u53ef\u4ee5\u5f88\u5bb9\u6613\u5730\u8fdb\u884c\u6570\u636e\u63a2\u7d22\u6027\u5206\u6790\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import seaborn as sns<\/p>\n<h2><strong>\u7ed8\u5236\u7bb1\u7ebf\u56fe<\/strong><\/h2>\n<p>sns.boxplot(x=&#39;category&#39;, y=&#39;sales&#39;, data=df)<\/p>\n<p>plt.title(&#39;Sales Distribution by Category&#39;)<\/p>\n<p>plt.show()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001OPENPYXL\u548cXLWINGS\u64cd\u4f5cEXCEL\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u751f\u6210Excel\u683c\u5f0f\u62a5\u8868\u7684\u60c5\u51b5\uff0c\u53ef\u4ee5\u4f7f\u7528openpyxl\u6216xlwings\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>OPENPYXL<\/strong><\/li>\n<\/ol>\n<p><p>openpyxl\u662f\u4e00\u4e2a\u7528\u4e8e\u8bfb\u5199Excel 2010 xlsx\/xlsm\/xltx\/xltm\u6587\u4ef6\u7684Python\u5e93\u3002\u53ef\u4ee5\u7528\u6765\u521b\u5efaExcel\u6587\u4ef6\uff0c\u5199\u5165\u6570\u636e\uff0c\u8bbe\u7f6e\u683c\u5f0f\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from openpyxl import Workbook<\/p>\n<h2><strong>\u521b\u5efa\u65b0\u7684Excel\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>wb = Workbook()<\/p>\n<p>ws = wb.active<\/p>\n<h2><strong>\u5199\u5165\u6570\u636e<\/strong><\/h2>\n<p>ws.append([&#39;Category&#39;, &#39;Sales&#39;])<\/p>\n<p>for row in grouped.itertuples():<\/p>\n<p>    ws.append([row.Index, row.sales])<\/p>\n<h2><strong>\u4fdd\u5b58\u6587\u4ef6<\/strong><\/h2>\n<p>wb.save(&#39;report.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>XLWINGS<\/strong><\/li>\n<\/ol>\n<p><p>xlwings\u53ef\u4ee5\u901a\u8fc7Python\u81ea\u52a8\u5316Excel\uff0c\u652f\u6301\u590d\u6742\u7684Excel\u64cd\u4f5c\uff0c\u5982\u516c\u5f0f\u8fd0\u7b97\u3001\u56fe\u8868\u751f\u6210\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import xlwings as xw<\/p>\n<h2><strong>\u521b\u5efa\u65b0\u7684Excel\u5de5\u4f5c\u7c3f<\/strong><\/h2>\n<p>wb = xw.Book()<\/p>\n<p>sheet = wb.sheets[0]<\/p>\n<h2><strong>\u5199\u5165\u6570\u636e<\/strong><\/h2>\n<p>sheet.range(&#39;A1&#39;).value = [&#39;Category&#39;, &#39;Sales&#39;]<\/p>\n<p>sheet.range(&#39;A2&#39;).value = grouped.reset_index().values<\/p>\n<h2><strong>\u4fdd\u5b58\u6587\u4ef6<\/strong><\/h2>\n<p>wb.save(&#39;report.xlsx&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001REPORTLAB\u751f\u6210PDF\u62a5\u8868<\/p>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u751f\u6210PDF\u683c\u5f0f\u7684\u62a5\u8868\uff0c\u53ef\u4ee5\u4f7f\u7528reportlab\u5e93\u3002\u5b83\u5141\u8bb8\u521b\u5efa\u4e13\u4e1a\u7684PDF\u6587\u6863\uff0c\u652f\u6301\u6587\u672c\u3001\u56fe\u5f62\u3001\u8868\u683c\u7b49\u5143\u7d20\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u57fa\u672cPDF<\/strong><\/li>\n<\/ol>\n<p><p>reportlab\u63d0\u4f9b\u4e86\u7b80\u5355\u7684\u63a5\u53e3\u6765\u521b\u5efaPDF\u6587\u6863\uff0c\u5305\u62ec\u6dfb\u52a0\u6587\u672c\u3001\u56fe\u5f62\u7b49\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from reportlab.lib.pagesizes import letter<\/p>\n<p>from reportlab.pdfgen import canvas<\/p>\n<h2><strong>\u521b\u5efaPDF\u6587\u4ef6<\/strong><\/h2>\n<p>c = canvas.Canvas(&quot;report.pdf&quot;, pagesize=letter)<\/p>\n<p>c.drawString(100, 750, &quot;Sales Report&quot;)<\/p>\n<h2><strong>\u6dfb\u52a0\u8868\u683c\u6216\u56fe\u5f62<\/strong><\/h2>\n<h2><strong>...<\/strong><\/h2>\n<h2><strong>\u4fdd\u5b58PDF<\/strong><\/h2>\n<p>c.save()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6dfb\u52a0\u590d\u6742\u5143\u7d20<\/strong><\/li>\n<\/ol>\n<p><p>reportlab\u652f\u6301\u590d\u6742\u7684\u5e03\u5c40\uff0c\u53ef\u4ee5\u6dfb\u52a0\u56fe\u8868\u3001\u8868\u683c\u7b49\u3002\u5728\u751f\u6210\u590d\u6742\u7684PDF\u62a5\u8868\u65f6\uff0c\u53ef\u4ee5\u7ed3\u5408\u4f7f\u7528\u5176\u4ed6\u5e93\u751f\u6210\u56fe\u8868\uff0c\u5e76\u5c06\u5176\u5d4c\u5165\u5230PDF\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from reportlab.platypus import SimpleDocTemplate, Table, TableStyle<\/p>\n<p>from reportlab.lib import colors<\/p>\n<h2><strong>\u521b\u5efaPDF\u6587\u6863<\/strong><\/h2>\n<p>doc = SimpleDocTemplate(&quot;det<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>led_report.pdf&quot;, pagesize=letter)<\/p>\n<h2><strong>\u521b\u5efa\u8868\u683c\u6570\u636e<\/strong><\/h2>\n<p>table_data = [[&#39;Category&#39;, &#39;Sales&#39;]] + grouped.reset_index().values.tolist()<\/p>\n<h2><strong>\u521b\u5efa\u8868\u683c\u5bf9\u8c61<\/strong><\/h2>\n<p>table = Table(table_data)<\/p>\n<p>table.setStyle(TableStyle([(&#39;BACKGROUND&#39;, (0, 0), (-1, 0), colors.grey),<\/p>\n<p>                           (&#39;TEXTCOLOR&#39;, (0, 0), (-1, 0), colors.whitesmoke),<\/p>\n<p>                           (&#39;ALIGN&#39;, (0, 0), (-1, -1), &#39;CENTER&#39;),<\/p>\n<p>                           (&#39;GRID&#39;, (0, 0), (-1, -1), 1, colors.black)]))<\/p>\n<h2><strong>\u6dfb\u52a0\u8868\u683c\u5230\u6587\u6863<\/strong><\/h2>\n<p>elements = [table]<\/p>\n<p>doc.build(elements)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5e93\u548c\u5de5\u5177\u6765\u5236\u4f5c\u5404\u79cd\u683c\u5f0f\u7684\u62a5\u8868\uff0c\u65e0\u8bba\u662f\u6570\u636e\u5904\u7406\u3001\u53ef\u89c6\u5316\u8fd8\u662f\u751f\u6210\u5177\u4f53\u683c\u5f0f\u7684\u6587\u4ef6\uff0c\u90fd\u53ef\u4ee5\u5728Python\u4e2d\u627e\u5230\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\u3002\u901a\u8fc7\u7ed3\u5408\u4f7f\u7528\u8fd9\u4e9b\u5e93\uff0c\u53ef\u4ee5\u9ad8\u6548\u5730\u5b8c\u6210\u4ece\u6570\u636e\u5206\u6790\u5230\u62a5\u8868\u751f\u6210\u7684\u6574\u4e2a\u6d41\u7a0b\u3002\u8fd9\u4e0d\u4ec5\u63d0\u9ad8\u4e86\u5de5\u4f5c\u6548\u7387\uff0c\u4e5f\u4e3a\u6570\u636e\u5206\u6790\u7ed3\u679c\u7684\u5448\u73b0\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u751f\u6210\u62a5\u8868\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5e93\u548c\u5de5\u5177\u6765\u751f\u6210\u62a5\u8868\uff0c\u6bd4\u5982Pandas\u3001Matplotlib\u548cReportLab\u7b49\u3002Pandas\u7528\u4e8e\u6570\u636e\u5904\u7406\u548c\u5206\u6790\uff0c\u80fd\u591f\u8f7b\u677e\u8bfb\u53d6CSV\u3001Excel\u7b49\u683c\u5f0f\u7684\u6570\u636e\u3002Matplotlib\u5219\u53ef\u4ee5\u7528\u4e8e\u53ef\u89c6\u5316\u6570\u636e\uff0c\u901a\u8fc7\u56fe\u8868\u5c55\u793a\u4fe1\u606f\u3002\u800cReportLab\u5219\u9002\u5408\u751f\u6210PDF\u683c\u5f0f\u7684\u62a5\u8868\u3002\u901a\u8fc7\u7ed3\u5408\u8fd9\u4e9b\u5de5\u5177\uff0c\u7528\u6237\u53ef\u4ee5\u521b\u5efa\u51fa\u4e30\u5bcc\u591a\u6837\u7684\u62a5\u8868\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5904\u7406\u6570\u636e\u65f6\uff0c\u6709\u54ea\u4e9b\u5e38\u7528\u7684\u5e93\u63a8\u8350\uff1f<\/strong><br \/>\u5bf9\u4e8e\u6570\u636e\u5904\u7406\uff0cPandas\u662f\u6700\u53d7\u6b22\u8fce\u7684\u9009\u62e9\u4e4b\u4e00\uff0c\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u6570\u636e\u6846\u67b6\u548c\u4e30\u5bcc\u7684\u529f\u80fd\u6765\u6e05\u6d17\u548c\u5206\u6790\u6570\u636e\u3002NumPy\u4e5f\u5e38\u7528\u4e8e\u6570\u503c\u8ba1\u7b97\uff0c\u80fd\u591f\u52a0\u901f\u5904\u7406\u5927\u578b\u6570\u7ec4\u548c\u77e9\u9635\u3002\u6b64\u5916\uff0cSciPy\u5728\u79d1\u5b66\u8ba1\u7b97\u4e2d\u63d0\u4f9b\u4e86\u8bb8\u591a\u9ad8\u7ea7\u529f\u80fd\uff0c\u8fd9\u4e9b\u5e93\u80fd\u591f\u5e2e\u52a9\u7528\u6237\u9ad8\u6548\u5730\u5904\u7406\u548c\u5206\u6790\u6570\u636e\uff0c\u8fdb\u800c\u751f\u6210\u7cbe\u51c6\u7684\u62a5\u8868\u3002<\/p>\n<p><strong>\u5982\u4f55\u5c06\u751f\u6210\u7684\u62a5\u8868\u5bfc\u51fa\u4e3aExcel\u6216PDF\u683c\u5f0f\uff1f<\/strong><br \/>\u4f7f\u7528Pandas\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u636e\u6846\u5bfc\u51fa\u4e3aExcel\u6587\u4ef6\uff0c\u4f7f\u7528<code>DataFrame.to_excel()<\/code>\u65b9\u6cd5\u5373\u53ef\u5b9e\u73b0\u3002\u5bf9\u4e8ePDF\u683c\u5f0f\uff0c\u53ef\u4ee5\u4f7f\u7528ReportLab\u5e93\u521b\u5efa\u590d\u6742\u7684PDF\u62a5\u8868\uff0c\u6216\u7ed3\u5408Pandas\u548cMatplotlib\uff0c\u5148\u751f\u6210\u56fe\u8868\u518d\u5d4c\u5165\u5230PDF\u4e2d\u3002\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u683c\u5f0f\u5bfc\u51fa\u62a5\u8868\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u81ea\u52a8\u5316\u62a5\u8868\u751f\u6210\u7684\u8fc7\u7a0b\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u811a\u672c\u81ea\u52a8\u5316\u62a5\u8868\u751f\u6210\u7684\u8fc7\u7a0b\u3002\u7528\u6237\u53ef\u4ee5\u5229\u7528\u5b9a\u65f6\u4efb\u52a1\uff08\u5982cron\u4f5c\u4e1a\uff09\u6765\u5b9a\u671f\u8fd0\u884c\u811a\u672c\uff0c\u81ea\u52a8\u4ece\u6570\u636e\u5e93\u6216\u5176\u4ed6\u6570\u636e\u6e90\u63d0\u53d6\u6570\u636e\uff0c\u5e76\u751f\u6210\u62a5\u8868\u3002\u7ed3\u5408\u90ae\u4ef6\u53d1\u9001\u529f\u80fd\uff0c\u7528\u6237\u53ef\u4ee5\u5b9e\u73b0\u81ea\u52a8\u5c06\u751f\u6210\u7684\u62a5\u8868\u53d1\u9001\u7ed9\u76f8\u5173\u4eba\u5458\uff0c\u4ece\u800c\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python\u5236\u4f5c\u62a5\u8868\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528pandas\u5904\u7406\u6570\u636e\u3001\u5229\u7528matplotlib\u6216seabor [&hellip;]","protected":false},"author":3,"featured_media":1006841,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1006834"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1006834"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1006834\/revisions"}],"predecessor-version":[{"id":1006842,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1006834\/revisions\/1006842"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1006841"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1006834"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1006834"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1006834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}