{"id":3248,"date":"2023-02-24T14:57:45","date_gmt":"2023-02-24T05:57:45","guid":{"rendered":"https:\/\/blog.since2020.jp\/?p=3248"},"modified":"2023-02-24T14:58:50","modified_gmt":"2023-02-24T05:58:50","slug":"pandas_profiling","status":"publish","type":"post","link":"https:\/\/since2020.jp\/media\/pandas_profiling\/","title":{"rendered":"\u3010AI\u30a8\u30f3\u30b8\u30cb\u30a2\u5fc5\u898b\u3011\u30c7\u30fc\u30bf\u7406\u89e3\u306e\u8ca0\u62c5\u3092\u6e1b\u3089\u3059pandas profiling"},"content":{"rendered":"\n<p>AI\u30e2\u30c7\u30eb\u3084BI\u958b\u767a\u3092\u3059\u308b\u969b\u306b\u306f\u3001\u63a2\u7d22\u7684\u30c7\u30fc\u30bf\u5206\u6790\uff08EDA\uff09\u306e\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u4f5c\u696d\u306f\u3001\u305d\u306e\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u591a\u5927\u306a\u6642\u9593\u3068\u52b4\u529b\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u7406\u89e3\u306e\u4f5c\u696d\u8ca0\u62c5\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3067\u304d\u308b\u306e\u304c\u300cpandas profiling\u300d\u3067\u3059\u3002\u300cpandas profiling\u300d\u306fPython\u306e\u30c7\u30fc\u30bf\u5206\u6790\u30e9\u30a4\u30d6\u30e9\u30eapandas\u306e\u62e1\u5f35\u30e9\u30a4\u30d6\u30e9\u30ea\u3067\u3042\u308a\u3001\u30c7\u30fc\u30bf\u30d5\u30ec\u30fc\u30e0\u306e\u69cb\u9020\u3084\u7d71\u8a08\u60c5\u5831\u3092\u81ea\u52d5\u7684\u306b\u751f\u6210\u3057\u3066\u304f\u308c\u308b\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u300cpandas profiling\u300d\u306e\u4f7f\u3044\u65b9\u3092\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n<h2>pandas profiling\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u307e\u305a\u306f\u3001\u300cpandas profiling\u300d\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u30b3\u30de\u30f3\u30c9\u30d7\u30ed\u30f3\u30d7\u30c8\u3084\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><strong>pip install pandas-profiling<\/strong><\/p>\n\n<h2>pandas profiling\u3092\u4f7f\u7528\u3057\u305f\u30ec\u30dd\u30fc\u30c8\u4f5c\u6210<\/h2>\n<p>\u6b21\u306b\u3001\u5b9f\u969b\u306b\u300cpandas profiling\u300d\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u5206\u6790\u3092\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4eca\u56de\u306f\u3053\u3061\u3089\u306eKaggle\u306eKickstarter Projects\u306e\u30c7\u30fc\u30bf\u3092\u4f8b\u306b\u5b9f\u8df5\u3057\u3066\u3044\u304d\u307e\u3059\u3002Kaggle\u306eKickstarter Projects\u306f\u3001\u30af\u30e9\u30a6\u30c9\u30d5\u30a1\u30f3\u30c7\u30a3\u30f3\u30b0\u30b5\u30a4\u30c8\u300cKickstarter\u300d\u3067\u884c\u308f\u308c\u305f\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30bb\u30c3\u30c8\u306b\u306f\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u3001\u958b\u59cb\u65e5\u3001\u7d42\u4e86\u65e5\u3001\u76ee\u6a19\u91d1\u984d\u3001\u8cc7\u91d1\u8abf\u9054\u984d\u3001\u652f\u63f4\u8005\u306e\u6570\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u72b6\u6cc1\u306a\u3069\u3001\u3055\u307e\u3056\u307e\u306a\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.kaggle.com\/datasets\/kemical\/kickstarter-projects\">Kickstarter Projects<\/a><\/p>\n<p>\u307e\u305a\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u300cpandas\u300d\u3067\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<\/p>\n<p><strong>import pandas as pd <\/strong><\/p>\n<p><strong>df = pd.read_csv(&#8216;ks-projects-201801.csv&#8217;)<\/strong><\/p>\n<p>\u6b21\u306b\u3001\u300cpandas profiling\u300d\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3092\u8abf\u3079\u3066\u307f\u307e\u3057\u3087\u3046\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u307e\u3059\u3002<\/p>\n<p><strong>from pandas_profiling import ProfileReport <\/strong><\/p>\n<p><strong>profile = ProfileReport(df) profile.to_file(output_file=&#8217;report.html&#8217;)<\/strong><\/p>\n<p>\u3053\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001\u300creport.html\u300d\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30d6\u30e9\u30a6\u30b6\u3067\u958b\u304f\u3068\u3001\u30c7\u30fc\u30bf\u306e\u6982\u8981\u304c\u5206\u304b\u308b\u30ec\u30dd\u30fc\u30c8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n<h2>Pandas Profiling Report\u306e\u8a73\u7d30 ~Overview~<\/h2>\n<p><img decoding=\"async\" width=\"2926\" height=\"1270\" src=\"\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview.png\" alt=\"\" class=\"wp-image-3250\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview.png 2926w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview-300x130.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview-1024x444.png 1024w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview-768x333.png 768w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview-1536x667.png 1536w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_overview-2048x889.png 2048w\" sizes=\"(max-width: 2926px) 100vw, 2926px\" \/><\/p>\n<p>\u3053\u3061\u3089\u304c\u305d\u306e\u30ec\u30dd\u30fc\u30c8\u306e\u5185\u5bb9\u3067\u3059\u3002\u300cOverview\u300d\u3067\u306f\u3001\u5404\u5909\u6570\u306e\u578b\u3084\u30c7\u30fc\u30bf\u306e\u5bb9\u91cf\u3001\u30c7\u30fc\u30bf\u30b5\u30a4\u30ba\u306a\u3069\u3001\u305d\u306e\u30c7\u30fc\u30bf\u306e\u6982\u8981\u306b\u95a2\u3057\u3066\u306e\u60c5\u5831\u3092\u77e5\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n<h2>Pandas Profiling Report\u306e\u8a73\u7d30 ~Variables~<\/h2>\n<p><img decoding=\"async\" width=\"2560\" height=\"1279\" src=\"\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-scaled.jpg\" alt=\"\" class=\"wp-image-3251\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-scaled.jpg 2560w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-300x150.jpg 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-1024x511.jpg 1024w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-768x384.jpg 768w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-1536x767.jpg 1536w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_prifiling_variables-2048x1023.jpg 2048w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<p>\u300cOverview\u300d\u306e\u4e0b\u306b\u306f\u300cVariables\u300d\u3068\u547c\u3070\u308c\u308b\u5909\u6570\u305d\u308c\u305e\u308c\u306e\u7279\u6027\u3092\u8a55\u4fa1\u3067\u304d\u308b\u9805\u76ee\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u3061\u3089\u306e\u5909\u6570category\u3092\u4f8b\u306b\u53d6\u3063\u3066\u307f\u308b\u3068\u3001\u6b20\u640d\u5024\u306e\u53ef\u5426\u3084\u3001\u30e6\u30cb\u30fc\u30af\u5024\u306e\u983b\u51fa\u9806\u4f4d\u306a\u3069\u304c\u8996\u899a\u7684\u306b\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u3061\u3089\u306f\u6587\u5b57\u5217\u30c7\u30fc\u30bf\u3067\u3059\u304c\u3001\u6570\u5024\u30c7\u30fc\u30bf\u306e\u5834\u5408\u306f\u4e2d\u592e\u5024\u3084\u56db\u5206\u4f4d\u7bc4\u56f2\u306a\u3069\u304c\u7b97\u51fa\u3055\u308c\u3066\u304a\u308a\u3001\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u60c5\u5831\u304c\u63c3\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<h2>Pandas Profiling Report\u306e\u8a73\u7d30 ~Missing Values~<\/h2>\n<p><img decoding=\"async\" width=\"2915\" height=\"1490\" src=\"\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing.png\" alt=\"\" class=\"wp-image-3252\" srcset=\"https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing.png 2915w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing-300x153.png 300w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing-1024x523.png 1024w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing-768x393.png 768w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing-1536x785.png 1536w, https:\/\/since2020.jp\/media\/wp-content\/uploads\/2023\/02\/pandas_profiling_missing-2048x1047.png 2048w\" sizes=\"(max-width: 2915px) 100vw, 2915px\" \/><\/p>\n<p>\u300cMissing Values\u300d\u3067\u306f\u3001\u5404\u5909\u6570\u306e\u6b20\u640d\u5024\u4ee5\u5916\u306e\u30c7\u30fc\u30bf\u306e\u500b\u6570\u304c\u53ef\u8996\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u3053\u306e\u3088\u3046\u306b\u3001\u300cpandas profiling\u300d\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u624b\u8efd\u306b\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3092\u628a\u63e1\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u7d39\u4ecb\u3057\u305f\u3082\u306e\u4ee5\u5916\u306b\u3082\u30ec\u30dd\u30fc\u30c8\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u60c5\u5831\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30fb\u76f8\u95a2\u5206\u6790<\/p>\n<p>\u30fb\u5916\u308c\u5024\u306e\u691c\u51fa<\/p>\n<p>\u30fb\u983b\u51fa\u5024\u3084\u6975\u7aef\u306a\u5024\u306e\u5206\u5e03<\/p>\n<p>\u500b\u4eba\u7684\u306b\u306f\u3001\u4f5c\u6210\u3057\u305f HTML \u30d5\u30a1\u30a4\u30eb\u3092\u5171\u6709\u3059\u308b\u3053\u3068\u3067\u3001\u8907\u6570\u4eba\u304c\u540c\u3058\u30ec\u30dd\u30fc\u30c8\u3092\u5171\u6709\u3057\u3066\u95b2\u89a7\u3067\u304d\u308b\u306e\u304c\u975e\u5e38\u306b\u4fbf\u5229\u306b\u611f\u3058\u3066\u3044\u307e\u3059\u3002\u7686\u69d8\u3082\u662f\u975e\u6d3b\u7528\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>AI\u30e2\u30c7\u30eb\u3084BI\u958b\u767a\u3092\u3059\u308b\u969b\u306b\u306f\u3001\u63a2\u7d22\u7684\u30c7\u30fc\u30bf\u5206\u6790\uff08EDA\uff09\u306e\u4f5c\u696d\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u4f5c\u696d\u306f\u3001\u305d\u306e\u30c7\u30fc\u30bf\u306e\u6982\u8981\u3092\u7406\u89e3\u3059\u308b\u305f\u3081\u306b\u591a\u5927\u306a\u6642\u9593\u3068\u52b4\u529b\u304c\u5fc5\u8981\u3067\u3059\u3002\u3053\u306e\u30c7\u30fc\u30bf\u7406\u89e3\u306e\u4f5c\u696d\u8ca0\u62c5\u3092\u5927\u5e45\u306b\u524a\u6e1b\u3067\u304d\u308b\u306e\u304c\u300cpandas prof [&hellip;]<\/p>\n","protected":false},"author":85,"featured_media":3249,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","swell_btn_cv_data":"","footnotes":"","_wp_rev_ctl_limit":""},"categories":[1246],"tags":[96,258,417,416,129,418],"class_list":["post-3248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-data-infrastructure","tag-ai","tag-bi","tag-eda","tag-pandas-profiling","tag-129","tag-418"],"_links":{"self":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/3248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/users\/85"}],"replies":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/comments?post=3248"}],"version-history":[{"count":0,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/posts\/3248\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media\/3249"}],"wp:attachment":[{"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/media?parent=3248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/categories?post=3248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/since2020.jp\/media\/wp-json\/wp\/v2\/tags?post=3248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}