{"id":1142650,"date":"2025-01-08T22:42:29","date_gmt":"2025-01-08T14:42:29","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1142650.html"},"modified":"2025-01-08T22:42:31","modified_gmt":"2025-01-08T14:42:31","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e5%88%a0%e9%99%a4%e4%b8%80%e5%88%97%e6%9c%89%e7%a9%ba%e5%80%bc%e7%9a%84%e8%a1%8c-2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1142650.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u5220\u9664\u4e00\u5217\u6709\u7a7a\u503c\u7684\u884c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24180643\/4810bd31-d5bd-4e0f-b5f9-25e88170fc9e.webp\" alt=\"python\u4e2d\u5982\u4f55\u5220\u9664\u4e00\u5217\u6709\u7a7a\u503c\u7684\u884c\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528Pandas\u5e93\u3002\u5177\u4f53\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528dropna()\u51fd\u6570\u3001\u4f7f\u7528\u5e03\u5c14\u7d22\u5f15\u3001\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u8fd9\u4e9b\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u6709\u6548\u5730\u6e05\u7406\u6570\u636e\uff0c\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u548c\u51c6\u786e\u6027\u3002\u4ee5\u4e0b\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528Pandas\u5e93\u7684dropna()\u51fd\u6570\u3002<\/strong><\/p>\n<\/p>\n<p><p>Pandas\u662fPython\u4e2d\u5e7f\u6cdb\u4f7f\u7528\u7684\u6570\u636e\u64cd\u4f5c\u5e93\uff0c\u63d0\u4f9b\u4e86\u5404\u79cd\u529f\u80fd\u7528\u4e8e\u6570\u636e\u6e05\u6d17\u548c\u5206\u6790\u3002\u8981\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528dropna()\u51fd\u6570\u3002\u8fd9\u4e2a\u51fd\u6570\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u6216\u5217\uff0c\u7075\u6d3b\u6027\u975e\u5e38\u9ad8\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001Pandas\u5e93\u7684\u4ecb\u7ecd<\/h3>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u5f00\u6e90\u6570\u636e\u5206\u6790\u548c\u6570\u636e\u5904\u7406\u5e93\uff0c\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u548c\u6570\u636e\u5206\u6790\u5de5\u5177\u3002\u5b83\u7684\u6838\u5fc3\u6570\u636e\u7ed3\u6784\u5305\u62ecSeries\u548cDataFrame\u3002Series\u662f\u4e00\u7ef4\u6570\u7ec4\uff0c\u7c7b\u4f3c\u4e8ePython\u7684\u5217\u8868\uff0c\u4f46\u5177\u6709\u66f4\u591a\u529f\u80fd\uff1bDataFrame\u662f\u4e8c\u7ef4\u8868\u683c\u6570\u636e\u7ed3\u6784\uff0c\u7c7b\u4f3c\u4e8e\u7535\u5b50\u8868\u683c\u6216SQL\u8868\u683c\u3002<\/p>\n<\/p>\n<p><p>Pandas\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u51fd\u6570\u7528\u4e8e\u6570\u636e\u64cd\u4f5c\uff0c\u5982\u6570\u636e\u6e05\u6d17\u3001\u6570\u636e\u7b5b\u9009\u3001\u6570\u636e\u53d8\u6362\u7b49\u3002\u5b83\u7279\u522b\u9002\u7528\u4e8e\u5904\u7406\u7f3a\u5931\u6570\u636e\uff08NaN\uff09\uff0c\u5e76\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u8fd9\u4e9b\u7f3a\u5931\u503c\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528Pandas\u7684dropna()\u51fd\u6570<\/h3>\n<\/p>\n<p><p>Pandas\u7684dropna()\u51fd\u6570\u975e\u5e38\u5f3a\u5927\uff0c\u53ef\u4ee5\u6839\u636e\u6307\u5b9a\u7684\u6761\u4ef6\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u6216\u5217\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528dropna()\u51fd\u6570\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5bfc\u5165Pandas\u5e93<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5bfc\u5165Pandas\u5e93\u3002\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5Pandas\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5bfc\u5165Pandas\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u521b\u5efaDataFrame<\/h4>\n<\/p>\n<p><p>\u521b\u5efa\u4e00\u4e2a\u793a\u4f8bDataFrame\uff0c\u5176\u4e2d\u5305\u542b\u4e00\u4e9b\u7a7a\u503c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = {<\/p>\n<p>    &#39;A&#39;: [1, 2, None, 4],<\/p>\n<p>    &#39;B&#39;: [5, None, 7, 8],<\/p>\n<p>    &#39;C&#39;: [9, 10, 11, None]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2aDataFrame\u5305\u542b\u4e86\u4e00\u4e9b\u7a7a\u503c\uff08None\uff09\uff0c\u6211\u4eec\u5c06\u4f7f\u7528dropna()\u51fd\u6570\u5220\u9664\u8fd9\u4e9b\u884c\u3002<\/p>\n<\/p>\n<p><h4>3. \u4f7f\u7528dropna()\u51fd\u6570\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528dropna()\u51fd\u6570\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_cleaned = df.dropna()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0cdropna()\u51fd\u6570\u4f1a\u5220\u9664\u5305\u542b\u4efb\u4f55\u7a7a\u503c\u7684\u884c\u3002\u5982\u679c\u4f60\u53ea\u60f3\u5220\u9664\u7279\u5b9a\u5217\u4e2d\u5305\u542b\u7a7a\u503c\u7684\u884c\uff0c\u53ef\u4ee5\u6307\u5b9asubset\u53c2\u6570\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_cleaned = df.dropna(subset=[&#39;A&#39;])<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u53ea\u5220\u9664\u5217&#39;A&#39;\u4e2d\u5305\u542b\u7a7a\u503c\u7684\u884c\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u5e03\u5c14\u7d22\u5f15\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528dropna()\u51fd\u6570\uff0c\u5e03\u5c14\u7d22\u5f15\u4e5f\u662f\u4e00\u79cd\u6709\u6548\u7684\u65b9\u6cd5\u6765\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528\u5e03\u5c14\u7d22\u5f15\u6765\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5bfc\u5165Pandas\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u521b\u5efaDataFrame<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4e0e\u524d\u9762\u76f8\u540c\u7684\u793a\u4f8bDataFrame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = {<\/p>\n<p>    &#39;A&#39;: [1, 2, None, 4],<\/p>\n<p>    &#39;B&#39;: [5, None, 7, 8],<\/p>\n<p>    &#39;C&#39;: [9, 10, 11, None]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u4f7f\u7528\u5e03\u5c14\u7d22\u5f15\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u5e03\u5c14\u7d22\u5f15\u6765\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_cleaned = df[df[&#39;A&#39;].notna()]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u53ea\u4fdd\u7559\u5217&#39;A&#39;\u4e2d\u6ca1\u6709\u7a7a\u503c\u7684\u884c\u3002\u5982\u679c\u4f60\u60f3\u5220\u9664\u4efb\u610f\u5217\u4e2d\u5305\u542b\u7a7a\u503c\u7684\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_cleaned = df.dropna(how=&#39;any&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u60f3\u5220\u9664\u6240\u6709\u5217\u4e2d\u90fd\u4e3a\u7a7a\u503c\u7684\u884c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">df_cleaned = df.dropna(how=&#39;all&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u81ea\u5b9a\u4e49\u51fd\u6570\u65b9\u6cd5<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u4f60\u53ef\u80fd\u9700\u8981\u6839\u636e\u66f4\u590d\u6742\u7684\u6761\u4ef6\u6765\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u4f60\u53ef\u4ee5\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u7f16\u5199\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u7684\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>1. \u5bfc\u5165Pandas\u5e93<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u521b\u5efaDataFrame<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4e0e\u524d\u9762\u76f8\u540c\u7684\u793a\u4f8bDataFrame\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">data = {<\/p>\n<p>    &#39;A&#39;: [1, 2, None, 4],<\/p>\n<p>    &#39;B&#39;: [5, None, 7, 8],<\/p>\n<p>    &#39;C&#39;: [9, 10, 11, None]<\/p>\n<p>}<\/p>\n<p>df = pd.DataFrame(data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u5b9a\u4e49\u81ea\u5b9a\u4e49\u51fd\u6570<\/h4>\n<\/p>\n<p><p>\u5b9a\u4e49\u4e00\u4e2a\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_rows_with_na(df, column):<\/p>\n<p>    return df[df[column].notna()]<\/p>\n<p>df_cleaned = remove_rows_with_na(df, &#39;A&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u51fd\u6570\u5c06\u5220\u9664\u5217&#39;A&#39;\u4e2d\u5305\u542b\u7a7a\u503c\u7684\u884c\u3002\u5982\u679c\u4f60\u60f3\u5220\u9664\u4efb\u610f\u5217\u4e2d\u5305\u542b\u7a7a\u503c\u7684\u884c\uff0c\u53ef\u4ee5\u4fee\u6539\u51fd\u6570\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">def remove_rows_with_na(df):<\/p>\n<p>    return df.dropna()<\/p>\n<p>df_cleaned = remove_rows_with_na(df)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u662f\u6570\u636e\u6e05\u6d17\u8fc7\u7a0b\u4e2d\u5e38\u89c1\u7684\u4efb\u52a1\u3002Pandas\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u8fd9\u4e00\u76ee\u6807\uff0c\u5305\u62ec\u4f7f\u7528dropna()\u51fd\u6570\u3001\u5e03\u5c14\u7d22\u5f15\u548c\u81ea\u5b9a\u4e49\u51fd\u6570\u3002\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\u53d6\u51b3\u4e8e\u4f60\u7684\u5177\u4f53\u9700\u6c42\u548c\u6570\u636e\u7279\u70b9\u3002\u65e0\u8bba\u4f60\u9009\u62e9\u54ea\u79cd\u65b9\u6cd5\uff0c\u786e\u4fdd\u5728\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u4e4b\u524d\u5907\u4efd\u4f60\u7684\u6570\u636e\uff0c\u4ee5\u9632\u6b62\u6570\u636e\u4e22\u5931\u3002\u901a\u8fc7\u6709\u6548\u5730\u6e05\u7406\u6570\u636e\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u6570\u636e\u7684\u5b8c\u6574\u6027\u548c\u51c6\u786e\u6027\uff0c\u4ece\u800c\u63d0\u9ad8\u6570\u636e\u5206\u6790\u7684\u8d28\u91cf\u548c\u53ef\u9760\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u8bc6\u522b\u5305\u542b\u7a7a\u503c\u7684\u884c\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Pandas\u5e93\u8f7b\u677e\u8bc6\u522b\u5305\u542b\u7a7a\u503c\u7684\u884c\u3002\u901a\u8fc7<code>isnull()<\/code>\u6216<code>isna()<\/code>\u51fd\u6570\u7ed3\u5408<code>any()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u68c0\u6d4bDataFrame\u4e2d\u6bcf\u884c\u662f\u5426\u5b58\u5728\u7a7a\u503c\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\n\ndata = {&#39;A&#39;: [1, 2, None, 4], &#39;B&#39;: [None, 2, 3, 4]}\ndf = pd.DataFrame(data)\nempty_rows = df[df.isnull().any(axis=1)]\nprint(empty_rows)\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u5e2e\u52a9\u4f60\u627e\u5230\u6240\u6709\u5305\u542b\u7a7a\u503c\u7684\u884c\u3002<\/p>\n<p><strong>\u5728\u5220\u9664\u7a7a\u503c\u884c\u540e\uff0c\u5982\u4f55\u9a8c\u8bc1\u6570\u636e\u7684\u5b8c\u6574\u6027\uff1f<\/strong><br \/>\u5220\u9664\u7a7a\u503c\u884c\u540e\uff0c\u5efa\u8bae\u4f7f\u7528<code>isnull().sum()<\/code>\u6765\u68c0\u67e5DataFrame\u4e2d\u6bcf\u5217\u7684\u7a7a\u503c\u6570\u91cf\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u786e\u4fdd\u5728\u5904\u7406\u6570\u636e\u65f6\uff0c\u6240\u6709\u91cd\u8981\u4fe1\u606f\u90fd\u5f97\u5230\u4e86\u4fdd\u7559\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">print(df.isnull().sum())\n<\/code><\/pre>\n<p>\u8fd9\u6837\u53ef\u4ee5\u786e\u8ba4\u6570\u636e\u96c6\u7684\u5b8c\u6574\u6027\uff0c\u786e\u4fdd\u6ca1\u6709\u9057\u6f0f\u91cd\u8981\u6570\u636e\u3002<\/p>\n<p><strong>\u5728\u5220\u9664\u884c\u65f6\uff0c\u662f\u5426\u53ef\u4ee5\u9009\u62e9\u6027\u5220\u9664\u7279\u5b9a\u5217\u7684\u7a7a\u503c\u884c\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u6027\u5730\u5220\u9664\u7279\u5b9a\u5217\u7684\u7a7a\u503c\u884c\u3002\u4f7f\u7528<code>dropna()<\/code>\u51fd\u6570\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7<code>subset<\/code>\u53c2\u6570\u6307\u5b9a\u8981\u68c0\u67e5\u7a7a\u503c\u7684\u5217\u3002\u8fd9\u4f7f\u5f97\u64cd\u4f5c\u66f4\u52a0\u7075\u6d3b\uff0c\u9002\u5e94\u4e0d\u540c\u7684\u6570\u636e\u6e05\u7406\u9700\u6c42\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">df_cleaned = df.dropna(subset=[&#39;A&#39;])\n<\/code><\/pre>\n<p>\u8fd9\u6837\uff0c\u53ea\u4f1a\u5220\u9664\u5728\u5217&#39;A&#39;\u4e2d\u6709\u7a7a\u503c\u7684\u884c\uff0c\u800c\u4e0d\u5f71\u54cd\u5176\u4ed6\u5217\u7684\u6570\u636e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u5220\u9664\u5305\u542b\u7a7a\u503c\u7684\u884c\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u4e3b\u8981\u5305\u62ec\u4f7f\u7528Pandas\u5e93\u3002\u5177\u4f53\u65b9\u6cd5\u6709\uff1a\u4f7f\u7528dropna()\u51fd\u6570 [&hellip;]","protected":false},"author":3,"featured_media":1142661,"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\/1142650"}],"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=1142650"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142650\/revisions"}],"predecessor-version":[{"id":1142662,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1142650\/revisions\/1142662"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1142661"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1142650"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1142650"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1142650"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}