{"id":1047202,"date":"2024-12-31T13:40:31","date_gmt":"2024-12-31T05:40:31","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1047202.html"},"modified":"2024-12-31T13:40:35","modified_gmt":"2024-12-31T05:40:35","slug":"python%e5%a6%82%e4%bd%95%e5%a2%9e%e5%8a%a0%e6%95%b0%e6%8d%ae%e6%a1%86%e5%88%97","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1047202.html","title":{"rendered":"python\u5982\u4f55\u589e\u52a0\u6570\u636e\u6846\u5217"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/cb14dbf8-f610-476f-9fd0-327e1acd6c0e.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u589e\u52a0\u6570\u636e\u6846\u5217\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u589e\u52a0\u4e00\u4e2a\u6570\u636e\u6846\u7684\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u76f4\u63a5\u8d4b\u503c\u3001<code>insert()<\/code>\u65b9\u6cd5\u3001<code>assign()<\/code>\u65b9\u6cd5\u3001<code>concat()<\/code>\u51fd\u6570\u7b49\u3002<\/strong>\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e2d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u63d0\u4f9b\u76f8\u5e94\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p>Python\u7684pandas\u5e93\u662f\u5904\u7406\u6570\u636e\u6846\u7684\u5f3a\u5927\u5de5\u5177\u3002\u589e\u52a0\u6570\u636e\u6846\u7684\u5217\u662f\u6570\u636e\u5904\u7406\u4e2d\u7684\u5e38\u89c1\u64cd\u4f5c\u4e4b\u4e00\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u76f4\u63a5\u8d4b\u503c<\/strong><\/li>\n<li><strong><code>insert()<\/code>\u65b9\u6cd5<\/strong><\/li>\n<li><strong><code>assign()<\/code>\u65b9\u6cd5<\/strong><\/li>\n<li><strong><code>concat()<\/code>\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><h3>\u4e00\u3001\u76f4\u63a5\u8d4b\u503c<\/h3>\n<\/p>\n<p><p>\u76f4\u63a5\u8d4b\u503c\u662f\u589e\u52a0\u6570\u636e\u6846\u5217\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u4e4b\u4e00\u3002\u53ea\u9700\u5c06\u65b0\u5217\u540d\u548c\u76f8\u5e94\u7684\u6570\u636e\u76f4\u63a5\u8d4b\u503c\u7ed9\u6570\u636e\u6846\u5373\u53ef\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\u6570\u636e\u6846<\/strong><\/h2>\n<p>df = pd.DataFrame({<\/p>\n<p>    &#39;A&#39;: [1, 2, 3],<\/p>\n<p>    &#39;B&#39;: [4, 5, 6]<\/p>\n<p>})<\/p>\n<h2><strong>\u76f4\u63a5\u8d4b\u503c\u589e\u52a0\u65b0\u5217<\/strong><\/h2>\n<p>df[&#39;C&#39;] = [7, 8, 9]<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong>\u76f4\u63a5\u8d4b\u503c\u65b9\u6cd5\u975e\u5e38\u76f4\u89c2\u4e14\u6613\u4e8e\u7406\u89e3\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u76f4\u63a5\u5c06\u65b0\u5217\u540d\u548c\u6570\u636e\u8d4b\u503c\u7ed9\u6570\u636e\u6846\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u6dfb\u52a0\u5355\u4e2a\u5217\uff0c\u64cd\u4f5c\u7b80\u5355\u4e14\u9ad8\u6548\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001<code>insert()<\/code>\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>insert()<\/code>\u65b9\u6cd5\u5141\u8bb8\u5728\u6570\u636e\u6846\u7684\u6307\u5b9a\u4f4d\u7f6e\u63d2\u5165\u65b0\u5217\u3002\u5b83\u63a5\u53d7\u4e09\u4e2a\u53c2\u6570\uff1a\u5217\u7684\u4f4d\u7f6e\u3001\u5217\u540d\u548c\u5217\u6570\u636e\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\u6570\u636e\u6846<\/strong><\/h2>\n<p>df = pd.DataFrame({<\/p>\n<p>    &#39;A&#39;: [1, 2, 3],<\/p>\n<p>    &#39;B&#39;: [4, 5, 6]<\/p>\n<p>})<\/p>\n<h2><strong>\u4f7f\u7528insert\u65b9\u6cd5\u5728\u6307\u5b9a\u4f4d\u7f6e\u63d2\u5165\u65b0\u5217<\/strong><\/h2>\n<p>df.insert(1, &#39;C&#39;, [7, 8, 9])<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><code>insert()<\/code>\u65b9\u6cd5\u63d0\u4f9b\u4e86\u66f4\u591a\u7684\u7075\u6d3b\u6027\uff0c\u53ef\u4ee5\u5728\u6570\u636e\u6846\u7684\u4efb\u4f55\u4f4d\u7f6e\u63d2\u5165\u65b0\u5217\uff0c\u800c\u4e0d\u4ec5\u4ec5\u662f\u6700\u540e\u3002\u8fd9\u5728\u9700\u8981\u4fdd\u6301\u7279\u5b9a\u7684\u5217\u987a\u5e8f\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001<code>assign()<\/code>\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p><code>assign()<\/code>\u65b9\u6cd5\u5141\u8bb8\u901a\u8fc7\u94fe\u5f0f\u64cd\u4f5c\u589e\u52a0\u65b0\u5217\u3002\u5b83\u8fd4\u56de\u4e00\u4e2a\u65b0\u7684\u6570\u636e\u6846\uff0c\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u6570\u636e\u6846\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u793a\u4f8b\u6570\u636e\u6846<\/strong><\/h2>\n<p>df = pd.DataFrame({<\/p>\n<p>    &#39;A&#39;: [1, 2, 3],<\/p>\n<p>    &#39;B&#39;: [4, 5, 6]<\/p>\n<p>})<\/p>\n<h2><strong>\u4f7f\u7528assign\u65b9\u6cd5\u589e\u52a0\u65b0\u5217<\/strong><\/h2>\n<p>df_new = df.assign(C=[7, 8, 9])<\/p>\n<p>print(df_new)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><code>assign()<\/code>\u65b9\u6cd5\u9002\u7528\u4e8e\u94fe\u5f0f\u64cd\u4f5c\uff0c\u53ef\u4ee5\u4e00\u6b21\u6027\u589e\u52a0\u591a\u4e2a\u65b0\u5217\u3002\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u4f1a\u4fee\u6539\u539f\u59cb\u6570\u636e\u6846\uff0c\u800c\u662f\u8fd4\u56de\u4e00\u4e2a\u5305\u542b\u65b0\u5217\u7684\u65b0\u6570\u636e\u6846\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001<code>concat()<\/code>\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>concat()<\/code>\u51fd\u6570\u53ef\u4ee5\u7528\u4e8e\u5c06\u591a\u4e2a\u6570\u636e\u6846\u6216Series\u5bf9\u8c61\u6cbf\u6307\u5b9a\u8f74\u8fde\u63a5\u8d77\u6765\uff0c\u589e\u52a0\u65b0\u5217\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e\u6846\u548cSeries<\/strong><\/h2>\n<p>df = pd.DataFrame({<\/p>\n<p>    &#39;A&#39;: [1, 2, 3],<\/p>\n<p>    &#39;B&#39;: [4, 5, 6]<\/p>\n<p>})<\/p>\n<p>new_col = pd.Series([7, 8, 9], name=&#39;C&#39;)<\/p>\n<h2><strong>\u4f7f\u7528concat\u51fd\u6570\u589e\u52a0\u65b0\u5217<\/strong><\/h2>\n<p>df = pd.concat([df, new_col], axis=1)<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong><code>concat()<\/code>\u51fd\u6570\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a\u6570\u636e\u6846\u6216Series\u5bf9\u8c61\u6cbf\u6307\u5b9a\u8f74\u8fde\u63a5\u8d77\u6765\u3002\u5c3d\u7ba1\u8fd9\u79cd\u65b9\u6cd5\u7a0d\u5fae\u590d\u6742\u4e00\u4e9b\uff0c\u4f46\u5728\u5904\u7406\u590d\u6742\u7684\u6570\u636e\u64cd\u4f5c\u65f6\u975e\u5e38\u6709\u7528\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u7efc\u5408\u5e94\u7528\u5b9e\u4f8b<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u9879\u76ee\u4e2d\uff0c\u5f80\u5f80\u9700\u8981\u6839\u636e\u5177\u4f53\u573a\u666f\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u7efc\u5408\u5e94\u7528\u7684\u5b9e\u4f8b\uff1a<\/p>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u4e00\u4e2a\u5305\u542b\u5b66\u751f\u6210\u7ee9\u7684\u6570\u636e\u6846\uff0c\u6211\u4eec\u60f3\u8981\u589e\u52a0\u4e00\u5217\u8868\u793a\u5b66\u751f\u7684\u5e73\u5747\u6210\u7ee9\uff0c\u5e76\u6839\u636e\u5e73\u5747\u6210\u7ee9\u589e\u52a0\u4e00\u5217\u8868\u793a\u5b66\u751f\u7684\u8bc4\u7ea7\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<h2><strong>\u521b\u5efa\u793a\u4f8b\u6570\u636e\u6846<\/strong><\/h2>\n<p>df = pd.DataFrame({<\/p>\n<p>    &#39;Student&#39;: [&#39;Alice&#39;, &#39;Bob&#39;, &#39;Charlie&#39;],<\/p>\n<p>    &#39;Math&#39;: [85, 92, 78],<\/p>\n<p>    &#39;Science&#39;: [90, 88, 84],<\/p>\n<p>    &#39;English&#39;: [87, 91, 80]<\/p>\n<p>})<\/p>\n<h2><strong>\u8ba1\u7b97\u5e73\u5747\u6210\u7ee9<\/strong><\/h2>\n<p>df[&#39;Average&#39;] = df[[&#39;Math&#39;, &#39;Science&#39;, &#39;English&#39;]].mean(axis=1)<\/p>\n<h2><strong>\u6839\u636e\u5e73\u5747\u6210\u7ee9\u589e\u52a0\u8bc4\u7ea7\u5217<\/strong><\/h2>\n<p>def assign_grade(avg):<\/p>\n<p>    if avg &gt;= 90:<\/p>\n<p>        return &#39;A&#39;<\/p>\n<p>    elif avg &gt;= 80:<\/p>\n<p>        return &#39;B&#39;<\/p>\n<p>    elif avg &gt;= 70:<\/p>\n<p>        return &#39;C&#39;<\/p>\n<p>    else:<\/p>\n<p>        return &#39;D&#39;<\/p>\n<p>df[&#39;Grade&#39;] = df[&#39;Average&#39;].apply(assign_grade)<\/p>\n<p>print(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/strong>\u5728\u8fd9\u4e2a\u7efc\u5408\u5e94\u7528\u5b9e\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u8ba1\u7b97\u6bcf\u4e2a\u5b66\u751f\u7684\u5e73\u5747\u6210\u7ee9\uff0c\u7136\u540e\u6839\u636e\u5e73\u5747\u6210\u7ee9\u7ed9\u6bcf\u4e2a\u5b66\u751f\u5206\u914d\u4e00\u4e2a\u8bc4\u7ea7\u3002\u4f7f\u7528\u76f4\u63a5\u8d4b\u503c\u7684\u65b9\u6cd5\u589e\u52a0\u65b0\u5217\uff0c\u4ee3\u7801\u7b80\u6d01\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u589e\u52a0\u6570\u636e\u6846\u7684\u5217\u662f\u6570\u636e\u5904\u7406\u4e2d\u7684\u57fa\u672c\u64cd\u4f5c\u3002\u672c\u6587\u4ecb\u7ecd\u4e86\u56db\u79cd\u5e38\u89c1\u7684\u65b9\u6cd5\uff1a\u76f4\u63a5\u8d4b\u503c\u3001<code>insert()<\/code>\u65b9\u6cd5\u3001<code>assign()<\/code>\u65b9\u6cd5\u3001<code>concat()<\/code>\u51fd\u6570\u3002\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u4f18\u70b9\u548c\u9002\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u6570\u636e\u5904\u7406\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u5b66\u4e60\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u719f\u7ec3\u638c\u63e1\u5728Python\u4e2d\u589e\u52a0\u6570\u636e\u6846\u5217\u7684\u5404\u79cd\u65b9\u6cd5\uff0c\u5e76\u80fd\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u65b9\u6cd5\u8fdb\u884c\u6570\u636e\u64cd\u4f5c\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u76f4\u63a5\u8d4b\u503c\u8fd8\u662f\u590d\u6742\u7684<code>concat()<\/code>\u64cd\u4f5c\uff0cpandas\u5e93\u90fd\u4e3a\u6211\u4eec\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u5e2e\u52a9\u6211\u4eec\u9ad8\u6548\u5730\u5904\u7406\u548c\u5206\u6790\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5411\u6570\u636e\u6846\u4e2d\u6dfb\u52a0\u65b0\u5217\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Pandas\u5e93\u8f7b\u677e\u5730\u5411\u6570\u636e\u6846\u6dfb\u52a0\u65b0\u5217\u3002\u53ef\u4ee5\u901a\u8fc7\u8d4b\u503c\u64cd\u4f5c\u6765\u521b\u5efa\u65b0\u5217\uff0c\u4f8b\u5982\u4f7f\u7528\u73b0\u6709\u5217\u7684\u8fd0\u7b97\u7ed3\u679c\uff0c\u6216\u8005\u901a\u8fc7\u63d0\u4f9b\u4e00\u4e2a\u4e0e\u6570\u636e\u6846\u884c\u6570\u76f8\u540c\u7684\u5217\u8868\u6216\u6570\u7ec4\u6765\u6dfb\u52a0\u65b0\u5217\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\n# \u521b\u5efa\u4e00\u4e2a\u7b80\u5355\u7684\u6570\u636e\u6846\ndf = pd.DataFrame({&#39;A&#39;: [1, 2, 3], &#39;B&#39;: [4, 5, 6]})\n\n# \u6dfb\u52a0\u65b0\u5217C\uff0c\u503c\u4e3aA\u548cB\u7684\u548c\ndf[&#39;C&#39;] = df[&#39;A&#39;] + df[&#39;B&#39;]\n<\/code><\/pre>\n<p><strong>\u5728\u6dfb\u52a0\u65b0\u5217\u65f6\uff0c\u5982\u4f55\u786e\u4fdd\u6570\u636e\u5bf9\u9f50\uff1f<\/strong><br \/>\u5728\u6dfb\u52a0\u65b0\u5217\u65f6\uff0c\u786e\u4fdd\u65b0\u5217\u7684\u957f\u5ea6\u4e0e\u6570\u636e\u6846\u7684\u884c\u6570\u5339\u914d\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u5982\u679c\u65b0\u5217\u7684\u957f\u5ea6\u4e0e\u6570\u636e\u6846\u7684\u884c\u6570\u4e0d\u4e00\u81f4\uff0cPandas\u5c06\u4f1a\u5f15\u53d1\u9519\u8bef\u3002\u4e3a\u4e86\u786e\u4fdd\u6570\u636e\u5bf9\u9f50\uff0c\u53ef\u4ee5\u5728\u6dfb\u52a0\u65b0\u5217\u524d\u68c0\u67e5\u65b0\u5217\u6570\u636e\u7684\u957f\u5ea6\u662f\u5426\u4e0e\u6570\u636e\u6846\u7684\u884c\u6570\u76f8\u540c\uff0c\u6216\u8005\u4f7f\u7528<code>loc<\/code>\u548c<code>iloc<\/code>\u65b9\u6cd5\u8fdb\u884c\u5b89\u5168\u8d4b\u503c\u3002<\/p>\n<p><strong>\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u4e3a\u65b0\u5217\u8d4b\u503c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6761\u4ef6\u8bed\u53e5\u4e3a\u65b0\u5217\u8d4b\u503c\u3002\u901a\u8fc7Pandas\u7684<code>apply()<\/code>\u65b9\u6cd5\u6216NumPy\u5e93\u7684<code>np.where()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u6839\u636e\u73b0\u6709\u5217\u7684\u503c\u4e3a\u65b0\u5217\u8d4b\u4e88\u6761\u4ef6\u6027\u503c\u3002\u8fd9\u79cd\u65b9\u6cd5\u4f7f\u5f97\u6570\u636e\u6846\u7684\u64cd\u4f5c\u66f4\u52a0\u7075\u6d3b\u548c\u5f3a\u5927\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\n\ndf[&#39;D&#39;] = np.where(df[&#39;A&#39;] &gt; 1, &#39;Greater than 1&#39;, &#39;1 or less&#39;)\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u65b0\u5217D\u5c06\u6839\u636e\u5217A\u7684\u503c\u88ab\u8d4b\u4e88\u4e0d\u540c\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u589e\u52a0\u4e00\u4e2a\u6570\u636e\u6846\u7684\u5217\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u51e0\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528\u76f4\u63a5\u8d4b\u503c\u3001insert()\u65b9\u6cd5\u3001assign( [&hellip;]","protected":false},"author":3,"featured_media":1047220,"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\/1047202"}],"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=1047202"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1047202\/revisions"}],"predecessor-version":[{"id":1047222,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1047202\/revisions\/1047222"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1047220"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1047202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1047202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1047202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}