{"id":5162,"date":"2020-04-28T20:48:14","date_gmt":"2020-04-28T12:48:14","guid":{"rendered":"https:\/\/vip.fxxkpython.com\/?p=5162"},"modified":"2020-04-28T20:48:17","modified_gmt":"2020-04-28T12:48:17","slug":"python-%e6%95%b0%e6%8d%ae%e5%8f%af%e8%a7%86%e5%8c%96-0%ef%bc%94-pandas-%e6%95%b0%e6%8d%ae%e6%93%8d%e4%bd%9c%e4%b9%8bseries","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=5162","title":{"rendered":"Python \u6570\u636e\u53ef\u89c6\u5316 0\uff14 | pandas \u6570\u636e\u64cd\u4f5c\u4e4bSeries"},"content":{"rendered":"\n<p>\u5728\u524d\u4e24\u7bc7\u4e2d\u6211\u4eec\u4ecb\u7ecd\u4e86 Numpy \u8fd9\u4e2a\u5e93\uff0c\u5b83\u4e3b\u8981\u662f\u7528\u6765\u64cd\u4f5c\u6570\u7ec4\u7684\uff0c\u5728 Python \u4e2d\u64cd\u4f5c\u6570\u636e\uff0c\u8fd8\u6709\u53e6\u5916\u4e00\u4e2a\u5e93\u4e5f\u5e38\u5e38\u4f1a\u88ab\u4f7f\u7528\u5230\uff0c\u5b83\u5c31\u662f pandas \uff0c\u548c Numpy \u4e0d\u540c\u7684\u662f\uff0c\u5b83\u4e3b\u8981\u7528\u6765\u64cd\u4f5c Series \u548c DataFrame \u8fd9\u6837\u7684\u6570\u636e\u7ed3\u6784\uff0c\u800c\u4e14\u5b83\u5bf9\u4e00\u4e9b\u91cd\u590d\u6570\u636e\u7684\u64cd\u4f5c\u4e5f\u5f88\u5b9e\u7528\u3002<\/p>\n\n\n\n<p>\u8fd9\u4e00\u7bc7\u5c0f\u5e05b\u5148\u6765\u7ed9\u4f60\u4ecb\u7ecd\u4e00\u4e0b pandas \u5bf9 Series \u7684\u5e38\u7528\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h2>\u4ec0\u4e48\u662f Series\uff1f<\/h2>\n\n\n\n<p>\u9996\u5148\u6211\u4eec\u6765\u521b\u5efa\u4e00\u4e2a Series \uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"504\" height=\"192\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-16-42.png\" alt=\"\" class=\"wp-image-5163\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-16-42.png 504w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-16-42-300x114.png 300w\" sizes=\"(max-width: 504px) 100vw, 504px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u91cc\u6211\u4eec\u901a\u8fc7\u4e00\u4e2a\u5217\u8868 [1,2,3,4] \u5f97\u5230\u4e00\u4e2a Series\uff0c\u6211\u4eec\u6253\u5370\u8fd9\u4e2a s \u7684\u65f6\u5019\u53ef\u4ee5\u770b\u5230\u5de6\u8fb9\u662f index \uff0c\u53f3\u8fb9\u662f value\u3002<\/p>\n\n\n\n<p>\u4e5f\u5c31\u662f\u8bf4\uff0c Series \u662f<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D5162\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u5c06 Series \u8f6c\u5316\u4e3a\u5b57\u5178\u548c json\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"478\" height=\"140\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-39-14.png\" alt=\"\" class=\"wp-image-5171\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-39-14.png 478w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-39-14-300x88.png 300w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/figure><\/div>\n\n\n\n<h3 id=\"mce_36\">Series \u901a\u8fc7 index \u8bbf\u95ee\u503c<\/h3>\n\n\n\n<p>\u548c\u5b57\u5178\u5dee\u4e0d\u591a\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 index \u8bbf\u95ee\u76f8\u5e94\u7684 Series \u503c\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"390\" height=\"184\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-40-48.png\" alt=\"\" class=\"wp-image-5172\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-40-48.png 390w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-40-48-300x142.png 300w\" sizes=\"(max-width: 390px) 100vw, 390px\" \/><\/figure><\/div>\n\n\n\n<h3>\u83b7\u53d6\u6700\u5927\u503c<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"306\" height=\"81\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-41-26.png\" alt=\"\" class=\"wp-image-5173\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-41-26.png 306w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-41-26-300x79.png 300w\" sizes=\"(max-width: 306px) 100vw, 306px\" \/><\/figure><\/div>\n\n\n\n<h3 id=\"mce_48\">\u83b7\u53d6\u6700\u5c0f\u503c<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"342\" height=\"74\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-41-52.png\" alt=\"\" class=\"wp-image-5174\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-41-52.png 342w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-41-52-300x65.png 300w\" sizes=\"(max-width: 342px) 100vw, 342px\" \/><\/figure><\/div>\n\n\n\n<h3 id=\"mce_49\">\u6c42\u548c<\/h3>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"289\" height=\"73\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-43-46.png\" alt=\"\" class=\"wp-image-5175\"\/><\/figure><\/div>\n\n\n\n<h3 id=\"mce_52\">\u6392\u5e8f<\/h3>\n\n\n\n<p>\u6839\u636e index \u6392\u5e8f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"378\" height=\"132\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-45-30.png\" alt=\"\" class=\"wp-image-5177\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-45-30.png 378w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-45-30-300x105.png 300w\" sizes=\"(max-width: 378px) 100vw, 378px\" \/><\/figure><\/div>\n\n\n\n<p>\u6839\u636e value \u6392\u5e8f\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" width=\"334\" height=\"136\" src=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-45-50.png\" alt=\"\" class=\"wp-image-5178\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-45-50.png 334w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/04\/Screenshot-from-2020-04-28-20-45-50-300x122.png 300w\" sizes=\"(max-width: 334px) 100vw, 334px\" \/><\/figure><\/div>\n\n\n\n<p>ok\uff0c\u4ee5\u4e0a\u5c31\u662f Series \u7684\u5e38\u7528\u64cd\u4f5c\uff0c\u4e0b\u4e00\u7bc7\u6211\u4eec\u7ee7\u7eed\u8bb2 pandas \u7684\u53e6\u4e00\u79cd\u6570\u636e\u7ed3\u6784 DataFrame\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u524d\u4e24\u7bc7\u4e2d\u6211\u4eec\u4ecb\u7ecd\u4e86 Numpy \u8fd9\u4e2a\u5e93\uff0c\u5b83\u4e3b\u8981\u662f\u7528\u6765\u64cd\u4f5c\u6570\u7ec4\u7684\uff0c\u5728 Python \u4e2d\u64cd\u4f5c\u6570\u636e\uff0c\u8fd8\u6709\u53e6\u5916\u4e00\u4e2a\u5e93\u4e5f\u5e38\u5e38\u4f1a\u88ab\u4f7f\u7528\u5230\uff0c\u5b83\u5c31\u662f pandas \uff0c\u548c Numpy \u4e0d\u540c\u7684\u662f\uff0c\u5b83\u4e3b\u8981\u7528\u6765\u64cd\u4f5c Series \u548c DataFrame \u8fd9\u6837\u7684\u6570\u636e\u7ed3\u6784\uff0c\u800c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":5167,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[393],"tags":[411,19,412,394,51],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5162"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5162"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5162\/revisions"}],"predecessor-version":[{"id":5179,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/5162\/revisions\/5179"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/5167"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}