{"id":1830,"date":"2021-08-02T17:50:20","date_gmt":"2021-08-02T09:50:20","guid":{"rendered":"https:\/\/egonlin.com\/?p=1830"},"modified":"2022-02-07T16:57:14","modified_gmt":"2022-02-07T08:57:14","slug":"%e5%ae%9e%e6%88%98%e7%bb%83%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/egonlin.com\/?p=1830","title":{"rendered":"\u5b9e\u6218\u7ec3\u4e60"},"content":{"rendered":"<hr \/>\n<hr \/>\n<h2>\u5206\u67901880\u52302017\u5e74\u51fa\u751f\u7684\u7f8e\u56fd\u5a74\u513f\u59d3\u540d<\/h2>\n<hr \/>\n<ul>\n<li>\u83b7\u53d6\u6570\u636e<\/li>\n<li>\u6570\u636e\u89c4\u6574<\/li>\n<li>\u5206\u6790\u6570\u636e<\/li>\n<\/ul>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/egonlin.com\/wp-content\/uploads\/2021\/08\/\u6076\u641e\u56fe01-6.png'><img class=\"lazyload lazyload-style-2\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  data-original=\"https:\/\/egonlin.com\/wp-content\/uploads\/2021\/08\/\u6076\u641e\u56fe01-6.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" \/><\/div><\/p>\n<h3>1\u3001\u83b7\u53d6\u6570\u636e<\/h3>\n<pre><code class=\"language-python\">\u94fe\u63a5\uff1ahttps:\/\/pan.baidu.com\/s\/1wIyRZfgR7EjQ_KFP5-cnaA \n\u63d0\u53d6\u7801\uff1ag0zy <\/code><\/pre>\n<h3>2\u3001\u6570\u636e\u89c4\u6574<\/h3>\n<p>\u56e0\u4e3a\u83b7\u53d6\u5230\u7684\u6570\u636e\u662f\u6839\u636e\u51fa\u751f\u5e74\u4efd\u5206\u4e3a\u4e86\u591a\u4e2a\u6587\u4ef6\uff0c\u5176\u4e2d\u6587\u4ef6\u5185\u90e8\u7684\u6570\u636e\u4e5f\u662f\u7b80\u5355\u7684\u901a\u8fc7\u9017\u53f7\u5206\u9694\u800c\u6210\u7684\uff0c\u6240\u4ee5\u9700\u8981\u89c4\u6574\u4e00\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">years = range(1880,2018)\npieces = []\ncolumns = [&#039;name&#039;,&#039;sex&#039;,&#039;births&#039;]  # \u5b57\u6bb5\u53c2\u6570\nfor year in years:\n    path = &quot;D:\\\\data\\\\names\\\\yob%s.txt&quot;%year  # \u52a0\u5165\u81ea\u5df1\u76f8\u5e94\u7684\u6587\u4ef6\u8def\u5f84\n    frame = pd.read_csv(path,names=columns)\n    frame[&#039;year&#039;] = year  # \u6dfb\u52a0\u51fa\u751f\u5e74\u4efd\u5217\n    pieces.append(frame)  \nnames = pd.concat(pieces,\uff0cignore_index=True)  # \u5408\u5e76\u6570\u636e\u96c6\uff0cignore_index=True\u5220\u9664\u539f\u7d22\u5f15\uff0c\u751f\u6210\u65b0\u7d22\u5f15<\/code><\/pre>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u64cd\u4f5c\u5c31\u53ef\u4ee5\u5c06\u6240\u6709\u7684\u6570\u636e\u6587\u4ef6\u5408\u5e76\u4e3a\u4e00\u4e2a\u6570\u636e\u96c6\uff0c\u63a5\u4e0b\u6765\u5c31\u53ef\u4ee5\u8fdb\u884c\u5177\u4f53\u7684\u6570\u636e\u5206\u6790<\/p>\n<h3>3\u3001\u5206\u6790\u6570\u636e<\/h3>\n<p>\u6709\u4e86\u4ee5\u4e0a\u6570\u636e\u96c6\u5c31\u53ef\u4ee5\u5229\u7528\u4ed6\u4eec\u5b8c\u6210\u5f88\u591a\u5de5\u4f5c\uff0c\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">1\u3001\u4ee5\u6027\u522b\u548c\u51fa\u751f\u5e74\u4efd\u5206\u6790\u603b\u51fa\u751f\u6570\n2\u3001\u5206\u6790\u547d\u540d\u8d8b\u52bf\n3\u3001\u5206\u6790\u540d\u5b57\u4e2d\u6700\u540e\u4e00\u4e2a\u5b57\u6bcd\u7684\u53d8\u5316\u8d8b\u52bf<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\u5c31\u4e3b\u8981\u4ee5\u4ee5\u4e0a\u51e0\u79cd\u65b9\u5f0f\u8fdb\u884c\u5206\u6790\uff0c\u6709\u5176\u4ed6\u65b9\u6848\u4e5f\u53ef\u4ee5\u81ea\u5df1\u6dfb\u52a0<\/p>\n<blockquote>\n<h4>3.1\u3001\u4ee5\u6027\u522b\u548c\u51fa\u751f\u5e74\u4efd\u5206\u6790\u603b\u51fa\u751f\u6570<\/h4>\n<\/blockquote>\n<p><\/p><div id=\"rml_readmorelogin_placeholder\" style=\"position:relative;\"><div id=\"rml_fade_content\" style=\"position: absolute;\r\ntop:-10em;\r\nwidth:100%;\r\nheight:10em;\r\nbackground: -webkit-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -moz-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -o-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\r\nbackground-image: -ms-linear-gradient(rgba(255, 255, 255, 0) 0%,#ffffff 100%);\"><\/div><div class=\"wpf-controller aru_rml_from_in_post\" style=\"background-color:#eeeeee;border:5px solid #cce6ff;\" id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><h2 id=\"Header\">\u67e5\u770b\u66f4\u591a<\/h2><div id=\"Message\"><p>\u8054\u7cfb\u7ba1\u7406\u5458\u5fae\u4fe1tutu19192010\uff0c\u6ce8\u518c\u8d26\u53f7<\/p>\n<\/div><div id=\"StatusBarHeader\"><\/div><form id=\"ARU_ReadMoreLogin_ReadMoreLoginController\"><input name=\"post_id\" value=\"1830\" type=\"hidden\"\/><input name=\"_init_callback\" value=\"InitLogin\" type=\"hidden\"\/><input name=\"post_id\" value=\"1830\" type=\"hidden\"\/><input name=\"rt_ype\" value=\"1\" type=\"hidden\"\/><input name=\"nonce\" value=\"188f9476a9\" type=\"hidden\"\/><input name=\"_wpnonce\" value=\"56d98ae6e2\" type=\"hidden\"\/><input name=\"_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_proxy_controller\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginController\" type=\"hidden\"\/><input name=\"_view\" value=\"ARU_ReadMoreLogin\\ReadMoreLoginView\" type=\"hidden\"\/><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\" width=\"400px\"><table class=\"wpf-table-placeholder\"><tbody class=\"wpf-table-placeholder\"><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Username:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"username\" value=\"\" type=\"text\"\/><\/td><\/tr><tr class=\"wpf-table-placeholder\"><th class=\"wpf-table-placeholder-input\"><label class=\"wpf-label\">Password:<\/label><\/th><\/tr><tr class=\"wpf-table-placeholder\"><td class=\"wpf-table-placeholder-input\"><input class=\"regular-text text_input\" name=\"password\" value=\"\" type=\"password\"\/><\/td><\/tr><\/tbody><\/table><p class=\"wpf-table-placeholder submit\"><button class=\"wp_plugin_framework_ajax_button\" type=\"button\" style=\"background-color:#4D90FE;;color:#ffffff;;border:1px solid #3079ed;\" name=\"_event\" value=\"ButtonLogin\">Log in<\/button><\/p><\/td><td class=\"wpf-table-placeholder-input\"><\/td><\/tr><\/tbody><\/table><\/form><div id=\"ButtonStartRegister\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=register\">Register<\/a><\/div><div id=\"Link1\"><a href=\"https:\/\/egonlin.com\/wp-login.php?action=lostpassword\">Forgotten username or password?<\/a><\/div><div id=\"StatusBarFooter\"><\/div><\/div><\/div><div id=aru_remaining_content><\/div>","protected":false},"excerpt":{"rendered":"<p>\u5206\u67901880\u52302017\u5e74\u51fa\u751f\u7684\u7f8e\u56fd\u5a74\u513f\u59d3\u540d \u83b7\u53d6\u6570\u636e \u6570\u636e\u89c4\u6574 \u5206\u6790\u6570\u636e 1\u3001\u83b7\u53d6\u6570\u636e \u94fe\u63a5\uff1ahttps:\/\/ [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2717,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[225],"tags":[216,226],"_links":{"self":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/1830"}],"collection":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1830"}],"version-history":[{"count":0,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/posts\/1830\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=\/wp\/v2\/media\/2717"}],"wp:attachment":[{"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/egonlin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}