{"id":953944,"date":"2024-12-27T01:49:47","date_gmt":"2024-12-26T17:49:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/953944.html"},"modified":"2024-12-27T01:49:49","modified_gmt":"2024-12-26T17:49:49","slug":"python%e5%a6%82%e4%bd%95%e6%9b%b4%e6%96%b0pandas%e5%ba%93","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/953944.html","title":{"rendered":"python\u5982\u4f55\u66f4\u65b0pandas\u5e93"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25094316\/9ec7edee-72bf-451f-852f-5ea1a3afbcc7.webp\" alt=\"python\u5982\u4f55\u66f4\u65b0pandas\u5e93\" \/><\/p>\n<p><p> <strong>\u8981\u66f4\u65b0Pandas\u5e93\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a\u4f7f\u7528pip\u547d\u4ee4\u66f4\u65b0\u3001\u68c0\u67e5\u5f53\u524d\u7248\u672c\u53f7\u3001\u786e\u4fddPython\u73af\u5883\u7684\u517c\u5bb9\u6027<\/strong>\u3002\u66f4\u65b0Pandas\u5e93\u7684\u6700\u7b80\u5355\u65b9\u6cd5\u662f\u4f7f\u7528pip\u547d\u4ee4\u3002\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\uff0c\u8f93\u5165<code>pip install --upgrade pandas<\/code>\uff0c\u8fd9\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Pandas\u5e93\u3002\u786e\u4fdd\u5728\u66f4\u65b0\u524d\u68c0\u67e5\u5f53\u524dPandas\u7248\u672c\u53f7\uff0c\u4ee5\u786e\u4fdd\u66f4\u65b0\u6210\u529f\u3002\u53ef\u4ee5\u901a\u8fc7\u5728Python\u4e2d\u8fd0\u884c<code>import pandas as pd; print(pd.__version__)<\/code>\u6765\u67e5\u770b\u5f53\u524d\u7248\u672c\u3002\u6b64\u5916\uff0c\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u4e0ePandas\u7684\u65b0\u7248\u672c\u517c\u5bb9\uff0c\u66f4\u65b0Python\u6216\u5176\u4ed6\u76f8\u5173\u4f9d\u8d56\u9879\u53ef\u80fd\u662f\u5fc5\u8981\u7684\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528PIP\u547d\u4ee4\u66f4\u65b0Pandas<\/p>\n<\/p>\n<p><p>Pandas\u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684Python\u6570\u636e\u5206\u6790\u5e93\uff0c\u901a\u5e38\u901a\u8fc7Python\u7684\u5305\u7ba1\u7406\u5de5\u5177pip\u6765\u5b89\u88c5\u548c\u66f4\u65b0\u3002\u4f7f\u7528pip\u66f4\u65b0Pandas\u662f\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u547d\u4ee4\u884c\u6216\u7ec8\u7aef<\/strong>\uff1a\u6839\u636e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u5de5\u5177\u3002\u5728Windows\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u6216PowerShell\uff1b\u5728macOS\u548cLinux\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u7ec8\u7aef\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165\u66f4\u65b0\u547d\u4ee4<\/strong>\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u66f4\u65b0Pandas\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install --upgrade pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u5c06\u641c\u7d22Pandas\u7684\u6700\u65b0\u7248\u672c\u5e76\u5b89\u88c5\u5230\u4f60\u7684Python\u73af\u5883\u4e2d\u3002\u786e\u4fdd\u4f60\u7684\u7f51\u7edc\u8fde\u63a5\u6b63\u5e38\uff0c\u4ee5\u4fbfpip\u53ef\u4ee5\u4ecePython Package Index\uff08PyPI\uff09\u4e0b\u8f7d\u6700\u65b0\u7684Pandas\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u66f4\u65b0<\/strong>\uff1a\u5728\u66f4\u65b0\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u6253\u5f00Python\u89e3\u91ca\u5668\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u786e\u8ba4Pandas\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>print(pd.__version__)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u5c06\u8f93\u51fa\u5f53\u524d\u5b89\u88c5\u7684Pandas\u7248\u672c\u53f7\u3002\u786e\u4fdd\u8fd9\u4e2a\u7248\u672c\u53f7\u4e0ePandas\u5b98\u65b9\u7f51\u7ad9\u6216PyPI\u4e0a\u7684\u6700\u65b0\u7248\u672c\u53f7\u4e00\u81f4\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u68c0\u67e5\u5f53\u524dPandas\u7248\u672c<\/p>\n<\/p>\n<p><p>\u5728\u66f4\u65b0Pandas\u4e4b\u524d\uff0c\u4e86\u89e3\u5f53\u524d\u5b89\u88c5\u7684\u7248\u672c\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u8fd9\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5224\u65ad\u662f\u5426\u9700\u8981\u66f4\u65b0\uff0c\u4ee5\u53ca\u66f4\u65b0\u540e\u7248\u672c\u662f\u5426\u6b63\u786e\u3002\u8981\u68c0\u67e5\u5f53\u524dPandas\u7248\u672c\uff0c\u53ef\u4ee5\u5728Python\u73af\u5883\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>print(pd.__version__)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u5c06\u8f93\u51fa\u4e00\u4e2a\u5b57\u7b26\u4e32\uff0c\u8868\u793a\u5f53\u524d\u7684Pandas\u7248\u672c\u3002\u4f8b\u5982\uff0c\u8f93\u51fa\u53ef\u80fd\u662f\u201c1.3.3\u201d\uff0c\u8fd9\u8868\u793a\u4f60\u6b63\u5728\u4f7f\u7528Pandas\u76841.3.3\u7248\u672c\u3002\u901a\u8fc7\u5b9a\u671f\u68c0\u67e5Pandas\u7684\u7248\u672c\uff0c\u4f60\u53ef\u4ee5\u786e\u4fdd\u81ea\u5df1\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7684\u529f\u80fd\uff0c\u5e76\u907f\u514d\u53ef\u80fd\u7684\u5b89\u5168\u6f0f\u6d1e\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u786e\u4fddPython\u73af\u5883\u7684\u517c\u5bb9\u6027<\/p>\n<\/p>\n<p><p>\u5728\u66f4\u65b0Pandas\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684Python\u73af\u5883\u4e0e\u65b0\u7248\u672c\u7684Pandas\u517c\u5bb9\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002\u67d0\u4e9b\u65b0\u7248\u672c\u7684Pandas\u53ef\u80fd\u8981\u6c42\u66f4\u65b0\u4f60\u7684Python\u7248\u672c\u6216\u5176\u4ed6\u4f9d\u8d56\u5e93\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u68c0\u67e5\u517c\u5bb9\u6027\u7684\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u67e5\u770bPandas\u7684\u53d1\u884c\u8bf4\u660e<\/strong>\uff1a\u5728Pandas\u7684\u5b98\u65b9\u7f51\u7ad9\u6216\u5176GitHub\u9875\u9762\u4e0a\u67e5\u770b\u6700\u65b0\u7248\u672c\u7684\u53d1\u884c\u8bf4\u660e\u3002\u8fd9\u4e9b\u8bf4\u660e\u901a\u5e38\u5305\u62ec\u7248\u672c\u66f4\u65b0\u7684\u5185\u5bb9\u4ee5\u53ca\u6240\u9700\u7684\u6700\u4f4ePython\u7248\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u66f4\u65b0Python<\/strong>\uff1a\u5982\u679cPandas\u7684\u65b0\u7248\u672c\u8981\u6c42\u66f4\u9ad8\u7248\u672c\u7684Python\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u4f60\u7684Python\u73af\u5883\u3002\u53ef\u4ee5\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u66f4\u65b0\u5176\u4ed6\u4f9d\u8d56\u9879<\/strong>\uff1aPandas\u4f9d\u8d56\u4e8e\u5176\u4ed6\u591a\u4e2a\u5e93\uff08\u5982NumPy\uff09\u3002\u786e\u4fdd\u8fd9\u4e9b\u5e93\u4e5f\u66f4\u65b0\u5230\u9002\u5f53\u7684\u7248\u672c\uff0c\u4ee5\u907f\u514d\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528Anaconda\u66f4\u65b0Pandas<\/p>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fAnaconda\uff08\u4e00\u4e2a\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u7684Python\u53d1\u884c\u7248\uff09\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7conda\u547d\u4ee4\u6765\u66f4\u65b0Pandas\u3002\u4e0epip\u7c7b\u4f3c\uff0cconda\u4e5f\u662f\u4e00\u4e2a\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u4e13\u95e8\u7528\u4e8e\u7ba1\u7406Python\u5305\u548c\u73af\u5883\u3002\u4f7f\u7528conda\u66f4\u65b0Pandas\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00Anaconda Prompt<\/strong>\uff1a\u5728Windows\u4e0a\uff0c\u4f60\u53ef\u4ee5\u4ece\u5f00\u59cb\u83dc\u5355\u4e2d\u627e\u5230Anaconda Prompt\u3002\u5728macOS\u548cLinux\u4e0a\uff0c\u4f60\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u76f4\u63a5\u4f7f\u7528conda\u547d\u4ee4\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8f93\u5165\u66f4\u65b0\u547d\u4ee4<\/strong>\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u66f4\u65b0Pandas\u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">conda update pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u547d\u4ee4\u5c06\u901a\u8fc7Anaconda\u7684\u5305\u7ba1\u7406\u7cfb\u7edf\u641c\u7d22Pandas\u7684\u6700\u65b0\u7248\u672c\u5e76\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u66f4\u65b0<\/strong>\uff1a\u4e0e\u4f7f\u7528pip\u76f8\u540c\uff0c\u4f60\u53ef\u4ee5\u5728\u66f4\u65b0\u5b8c\u6210\u540e\uff0c\u901a\u8fc7Python\u89e3\u91ca\u5668\u6765\u9a8c\u8bc1Pandas\u7684\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>print(pd.__version__)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u786e\u4fdd\u7248\u672c\u53f7\u4e0e\u6700\u65b0\u7248\u672c\u4e00\u81f4\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u89e3\u51b3\u66f4\u65b0\u8fc7\u7a0b\u4e2d\u7684\u5e38\u89c1\u95ee\u9898<\/p>\n<\/p>\n<p><p>\u5728\u66f4\u65b0Pandas\u7684\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u53ef\u80fd\u4f1a\u9047\u5230\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u95ee\u9898\u53ca\u5176\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u6743\u9650\u95ee\u9898<\/strong>\uff1a\u5982\u679c\u5728\u66f4\u65b0\u65f6\u9047\u5230\u6743\u9650\u9519\u8bef\uff0c\u5c1d\u8bd5\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u63d0\u793a\u7b26\uff08\u5728Windows\u4e0a\uff09\u6216\u4f7f\u7528<code>sudo<\/code>\u547d\u4ee4\uff08\u5728macOS\u548cLinux\u4e0a\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo pip install --upgrade pandas<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7f51\u7edc\u95ee\u9898<\/strong>\uff1a\u5982\u679c\u4e0b\u8f7d\u901f\u5ea6\u5f88\u6162\u6216\u65e0\u6cd5\u8fde\u63a5\u5230PyPI\uff0c\u68c0\u67e5\u4f60\u7684\u7f51\u7edc\u8fde\u63a5\uff0c\u6216\u8005\u5c1d\u8bd5\u4f7f\u7528\u56fd\u5185\u955c\u50cf\u6e90\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7248\u672c\u51b2\u7a81<\/strong>\uff1a\u5982\u679c\u67d0\u4e9b\u5305\u4e4b\u95f4\u5b58\u5728\u7248\u672c\u51b2\u7a81\uff0c\u53ef\u80fd\u9700\u8981\u66f4\u65b0\u6216\u964d\u7ea7\u76f8\u5173\u5305\u4ee5\u89e3\u51b3\u4f9d\u8d56\u95ee\u9898\u3002\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u6240\u6709\u5df2\u5b89\u88c5\u5305\u53ca\u5176\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip list<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u6839\u636e\u9700\u8981\u66f4\u65b0\u6216\u964d\u7ea7\u7279\u5b9a\u5305\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u865a\u62df\u73af\u5883<\/strong>\uff1a\u5982\u679c\u4f60\u5728\u865a\u62df\u73af\u5883\u4e2d\u5de5\u4f5c\uff0c\u786e\u4fdd\u6fc0\u6d3b\u4e86\u6b63\u786e\u7684\u73af\u5883\u3002\u4f7f\u7528<code>pip<\/code>\u6216<code>conda<\/code>\u66f4\u65b0\u5305\u65f6\uff0c\u547d\u4ee4\u5c06\u53ea\u5f71\u54cd\u5f53\u524d\u6fc0\u6d3b\u7684\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u4fdd\u6301Pandas\u548c\u5176\u4ed6\u5305\u7684\u6700\u65b0\u72b6\u6001<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u4fdd\u6301Pandas\u548c\u5176\u4ed6Python\u5305\u7684\u6700\u65b0\u72b6\u6001\uff0c\u4f60\u53ef\u4ee5\u5b9a\u671f\u6267\u884c\u4ee5\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b9a\u671f\u68c0\u67e5\u66f4\u65b0<\/strong>\uff1a\u5b9a\u671f\u8fd0\u884c<code>pip list --outdated<\/code>\u6216<code>conda list --outdated<\/code>\u547d\u4ee4\uff0c\u67e5\u770b\u54ea\u4e9b\u5305\u9700\u8981\u66f4\u65b0\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u81ea\u52a8\u66f4\u65b0\u811a\u672c<\/strong>\uff1a\u7f16\u5199\u4e00\u4e2a\u811a\u672c\uff0c\u81ea\u52a8\u66f4\u65b0\u6240\u6709\u5305\u3002\u6ce8\u610f\uff0c\u81ea\u52a8\u66f4\u65b0\u53ef\u80fd\u4f1a\u5f15\u5165\u4e0d\u517c\u5bb9\u7684\u7248\u672c\uff0c\u56e0\u6b64\u5728\u751f\u4ea7\u73af\u5883\u4e2d\u9700\u8c28\u614e\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8ba2\u9605Pandas\u66f4\u65b0\u901a\u77e5<\/strong>\uff1a\u901a\u8fc7\u5173\u6ce8Pandas\u7684GitHub\u4ed3\u5e93\u6216\u8ba2\u9605\u5176\u90ae\u4ef6\u5217\u8868\uff0c\u83b7\u53d6\u6700\u65b0\u7248\u672c\u53d1\u5e03\u548c\u66f4\u65b0\u7684\u901a\u77e5\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u548c\u65b9\u6cd5\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u66f4\u65b0Pandas\u5e93\uff0c\u5e76\u4fdd\u6301\u60a8\u7684Python\u6570\u636e\u5206\u6790\u5de5\u5177\u5904\u4e8e\u6700\u65b0\u72b6\u6001\u3002\u8fd9\u6837\u4e0d\u4ec5\u53ef\u4ee5\u5229\u7528\u65b0\u529f\u80fd\u548c\u6027\u80fd\u6539\u8fdb\uff0c\u8fd8\u53ef\u4ee5\u786e\u4fdd\u7a0b\u5e8f\u7684\u5b89\u5168\u6027\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u68c0\u67e5\u6211\u5f53\u524d\u7684pandas\u7248\u672c\uff1f<\/strong><br \/>\u8981\u68c0\u67e5\u5f53\u524d\u5b89\u88c5\u7684pandas\u7248\u672c\uff0c\u53ef\u4ee5\u5728Python\u73af\u5883\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u4ee3\u7801\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\nprint(pd.__version__)\n<\/code><\/pre>\n<p>\u8fd9\u5c06\u663e\u793a\u60a8\u5f53\u524d\u7684pandas\u7248\u672c\u4fe1\u606f\uff0c\u5e2e\u52a9\u60a8\u5224\u65ad\u662f\u5426\u9700\u8981\u66f4\u65b0\u3002<\/p>\n<p><strong>\u5728\u66f4\u65b0pandas\u4e4b\u524d\uff0c\u6211\u9700\u8981\u5907\u4efd\u6211\u7684\u6570\u636e\u5417\uff1f<\/strong><br \/>\u867d\u7136\u66f4\u65b0pandas\u672c\u8eab\u901a\u5e38\u4e0d\u4f1a\u5f71\u54cd\u73b0\u6709\u7684\u6570\u636e\uff0c\u4f46\u4e3a\u4e86\u5b89\u5168\u8d77\u89c1\uff0c\u5efa\u8bae\u5728\u66f4\u65b0\u4e4b\u524d\u5907\u4efd\u60a8\u7684\u6570\u636e\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u5728\u9047\u5230\u4efb\u4f55\u517c\u5bb9\u6027\u95ee\u9898\u65f6\uff0c\u60a8\u53ef\u4ee5\u6062\u590d\u5230\u65e7\u7248\u672c\u3002<\/p>\n<p><strong>\u66f4\u65b0pandas\u540e\uff0c\u6211\u5e94\u8be5\u5982\u4f55\u9a8c\u8bc1\u66f4\u65b0\u662f\u5426\u6210\u529f\uff1f<\/strong><br \/>\u5728\u66f4\u65b0pandas\u4e4b\u540e\uff0c\u53ef\u4ee5\u518d\u6b21\u8fd0\u884c\u4ee5\u4e0b\u4ee3\u7801\u6765\u786e\u8ba4\u66f4\u65b0\u662f\u5426\u6210\u529f\uff1a  <\/p>\n<pre><code class=\"language-python\">import pandas as pd\nprint(pd.__version__)\n<\/code><\/pre>\n<p>\u5982\u679c\u8f93\u51fa\u7684\u7248\u672c\u53f7\u4e0e\u60a8\u671f\u671b\u7684\u7248\u672c\u76f8\u7b26\uff0c\u90a3\u4e48\u66f4\u65b0\u5c31\u6210\u529f\u4e86\u3002\u6b64\u5916\uff0c\u8fd0\u884c\u4e00\u4e9b\u5e38\u7528\u7684pandas\u64cd\u4f5c\uff0c\u786e\u4fdd\u529f\u80fd\u6b63\u5e38\u4e5f\u662f\u4e00\u4e2a\u597d\u65b9\u6cd5\u3002<\/p>\n<p><strong>\u66f4\u65b0pandas\u65f6\u662f\u5426\u6709\u7279\u5b9a\u7684\u547d\u4ee4\u9700\u8981\u4f7f\u7528\uff1f<\/strong><br \/>\u662f\u7684\uff0c\u66f4\u65b0pandas\u901a\u5e38\u9700\u8981\u4f7f\u7528\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5982pip\u6216conda\u3002\u4f7f\u7528pip\u7684\u547d\u4ee4\u4e3a\uff1a  <\/p>\n<pre><code>pip install --upgrade pandas\n<\/code><\/pre>\n<p>\u800c\u5bf9\u4e8e\u4f7f\u7528conda\u7684\u7528\u6237\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a  <\/p>\n<pre><code>conda update pandas\n<\/code><\/pre>\n<p>\u786e\u4fdd\u5728\u547d\u4ee4\u884c\u4e2d\u6267\u884c\u8fd9\u4e9b\u547d\u4ee4\uff0c\u4ee5\u4fbf\u987a\u5229\u66f4\u65b0\u5230\u6700\u65b0\u7248\u672c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u66f4\u65b0Pandas\u5e93\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u65b9\u6cd5\uff1a\u4f7f\u7528pip\u547d\u4ee4\u66f4\u65b0\u3001\u68c0\u67e5\u5f53\u524d\u7248\u672c\u53f7\u3001\u786e\u4fddPython\u73af\u5883\u7684\u517c\u5bb9\u6027\u3002\u66f4 [&hellip;]","protected":false},"author":3,"featured_media":953945,"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\/953944"}],"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=953944"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/953944\/revisions"}],"predecessor-version":[{"id":953946,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/953944\/revisions\/953946"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/953945"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=953944"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=953944"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=953944"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}