{"id":210410,"date":"2020-11-29T02:49:58","date_gmt":"2020-11-28T18:49:58","guid":{"rendered":"http:\/\/4563.org\/?p=210410"},"modified":"2020-11-29T02:49:58","modified_gmt":"2020-11-28T18:49:58","slug":"pandas-%e5%a6%82%e4%bd%95%e7%bb%99-excel-%e7%89%b9%e5%ae%9a%e5%88%97%e6%b7%bb%e5%8a%a0%e4%b8%80%e4%b8%aa%e7%ad%9b%e9%80%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=210410","title":{"rendered":"pandas \u5982\u4f55\u7ed9 excel \u7279\u5b9a\u5217\u6dfb\u52a0\u4e00\u4e2a\u7b5b\u9009"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  pandas \u5982\u4f55\u7ed9 excel \u7279\u5b9a\u5217\u6dfb\u52a0\u4e00\u4e2a\u7b5b\u9009               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : yestodayHadRain <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<ul>\n<li>\n<p>excel \u4e2d\u53ef\u4ee5\u9009\u4e2d\u67d0\u5217,\u7136\u540e\u70b9\u51fb\u7b5b\u9009.\u9009\u4e2d\u5217 \u5c31\u53ef\u4ee5\u8fdb\u884c\u7b5b\u9009\u4e86,\u540c\u6837\u7684\u529f\u80fd python \u7528 pandas \u5728\u4ee3\u7801\u4e2d\u53ef\u4ee5\u5b9e\u73b0\u5417?<\/p>\n<\/li>\n<li>\n<p>\u5728\u7f51\u4e0a\u627e\u4e86\u627e,\u53d1\u73b0 \u641c\u51fa\u6765\u7684\u90fd\u662f \u628a excel \u4e2d\u7684\u6570\u636e\u8bfb\u5230 \u4ee3\u7801\u4e2d\u7136\u540e \u5728\u4ee3\u7801\u4e2d\u7b5b\u9009.\u6211\u60f3\u5b9e\u73b0\u7684\u662f\u76f4\u63a5\u7ed9 excel \u67d0\u5217\u8bbe\u7f6e\u4e00\u4e2a \u7b5b\u9009,\u8fd9\u4e2a pandas \u53ef\u4ee5\u5b9e\u73b0\u5417?\u6216\u8005\u6709\u4ec0\u4e48\u5176\u4ed6\u7684\u529e\u6cd5\u5b9e\u73b0\u5417?<\/p>\n<\/li>\n<\/ul><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>7<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4362735\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TimePPT <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u9996\u5148\uff0cpandas \u5c31\u4e0d\u662f\u7528\u6765\u505a excel \u7684\u6587\u4ef6\u64cd\u4f5c\u7684\uff0c\u5b83\u4e4b\u6240\u4ee5\u80fd\u8bfb\u5199\u662f\u501f\u52a9\u4e86\u4e09\u65b9 excel \u7684\u5f15\u64ce\u5305\u3002<br \/>\u6240\u4ee5\u7ed9 Excel \u52a0\u7b5b\u9009\u529f\u80fd\u76f4\u63a5\u7528\u4e09\u65b9\u5f15\u64ce\u5c31\u884c<br \/>https:\/\/openpyxl.readthedocs.io\/en\/stable\/filters.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4362736\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imn1 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             pandas \u662f\u5904\u7406\u6570\u636e\u7684\uff0c\u4e0d\u662f\u5904\u7406\u6587\u4ef6\u7684\uff0c\u53ea\u662f\u53ef\u4ee5\u5904\u7406\u5b8c\u4e4b\u540e\u5bfc\u51fa\u5230\u6587\u4ef6\uff08\u4e0d\u652f\u6301\u7684\u683c\u5f0f\u4e5f\u662f\u9760\u4e09\u65b9\uff09<br \/>\u6570\u636e\u7b5b\u9009\u662f pandas \u7684\u57fa\u7840\u529f\u80fd                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4362737\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : vtea <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             pd.loc()\u8fd9\u4e2a\u51fd\u6570                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4362738\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yestodayHadRain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @vtea pd.loc() \u662f\u628a\u6570\u636e\u8bfb\u5230 python \u4ee3\u7801\u91cc,\u7136\u540e\u5728\u4ee3\u7801\u91cc\u7b5b\u9009\u51fa\u6765\u5427.\u6211\u53ea\u662f\u60f3\u7ed9 excel \u67d0\u5217\u8bbe\u7f6e\u4e00\u4e2a\u7b5b\u9009                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4362739\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yestodayHadRain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TimePPT \u8d5e!\u8c22\u8c22\u5927\u4f6c,\u6211\u5c31\u77e5\u9053\u53ef\u4ee5\u5728 V \u7ad9\u627e\u5230\u7b54\u6848. \u4e0a\u5348\u770b\u4e86\u4e0b pandas \u7684\u5b98\u65b9\u6587\u6863,\u5982\u5927\u4f6c\u6240\u8bf4\u4e0d\u662f\u4e3b\u8981\u7528\u6765\u505a excel \u5904\u7406\u7684.                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4362740\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : yestodayHadRain <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @TimePPT \u518d\u8bf7\u6559\u4e2a\u95ee\u9898,\u5982\u679c\u6211\u7528 openpyxl \u6765\u64cd\u4f5c excel.\u652f\u6301\u5bf9 excel \u6574\u5217\u8d4b\u503c\u5417? \u6bd4\u5982 A \u4e00\u6574\u5217 \u90fd\u8d4b\u503c\u6210 test,\u8fd9\u4e2a\u6211\u770b pandas \u53ef\u4ee5\u5b9e\u73b0.\u4f46\u662f openpyxl \u6587\u6863\u91cc\u6ca1\u6709\u627e\u5230                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4362741\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : TimePPT <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @yestodayHadRain \u8bb0\u5f97\u6846\u5b9a\u8303\u56f4\u5c31\u53ef\u4ee5\u4e86\u554a\uff0c\u6bd4\u5982 A1:A30 \u8fd9\u79cd\u3002\u5b9e\u5728\u4e0d\u884c\u53ef\u4ee5\u914d\u5408 pandas \u4f7f\u7528\uff0c\u4e24\u8005\u53ef\u4ee5\u5b9e\u73b0\u4ea4\u4e92\u3002https:\/\/openpyxl.readthedocs.io\/en\/stable\/pandas.html                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>pandas \u5982\u4f55\u7ed9 excel &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/210410"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210410"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/210410\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210410"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}