{"id":1845,"date":"2021-05-31T18:56:54","date_gmt":"2021-05-31T09:56:54","guid":{"rendered":"https:\/\/www.itchefblog.com\/?p=1845"},"modified":"2021-06-01T00:15:20","modified_gmt":"2021-05-31T15:15:20","slug":"pandas-with-python-%ed%8a%b9%ec%a0%95-%ed%96%89%ec%9d%b4%eb%82%98-%ec%97%b4%ec%9d%b4-%ec%a1%b4%ec%9e%ac%ed%95%98%eb%8a%94%ec%a7%80-%ec%b2%b4%ed%81%ac-%eb%b0%8f-%ec%82%ad%ec%a0%9c-%eb%b0%a9%eb%b2%95","status":"publish","type":"post","link":"https:\/\/www.itchefblog.com\/?p=1845","title":{"rendered":"Pandas (with python) \ud2b9\uc815 \ud589\uc774\ub098 \uc5f4\uc774 \uc874\uc7ac\ud558\ub294\uc9c0 \uccb4\ud06c \ud6c4 \uc0ad\uc81c \ubc29\ubc95"},"content":{"rendered":"\n<p>\ub370\uc774\ud130 scraping \ud6c4 table\uc744 pandas DataFrame\uc73c\ub85c \ubcc0\ud658\ud588\uc744 \ub54c \uc4f8\ubaa8\uc5c6\ub294 \ud589\uc774\ub098 \uc5f4\uc774 \ud568\uaed8 \ub4e4\uc5b4\uc624\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4.<br>\uc815\uc0c1\uc801\uc778 \ud14c\uc774\ube14\uc5d0 \uac12\ub9cc null\uc774\ub77c\uba74 df.dropna()\ub85c \ucc98\ub9ac\ud558\uba74 \uac04\ud3b8\ud558\uc9c0\ub9cc \uadf8\uac8c \uc544\ub2cc \uc0c1\ud669\uc77c \uacbd\uc6b0 (\uc608\ub97c\ub4e4\uc5b4 \uc2a4\ud06c\ub7a9\ud551 \ud55c \ud398\uc774\uc9c0\uc758 pagination \ub54c\ubb38\uc774\ub784\uc9c0..)<br>\ubd88\ud544\uc694\ud55c \ud589\uc774 \uc874\uc7ac\ud558\ub294\uc9c0 \uc5ec\ubd80\uc5d0 \ub530\ub77c \uc0ad\uc81c\ub97c \ud574\uc8fc\uc5b4\uc57c \ud55c\ub2e4.<\/p>\n\n\n\n<p>\ub098\ub294 \uc544\ub798\uc640 \uac19\uc774 \ucc98\ub9ac\ud558\uc600\ub2e4.<br><br>if 0 in df:<br>    df = df.drop([0], axis=1)<br><br>df\uc5d0 0\uc774\ub77c\ub294 \ud589\uc774 \uc874\uc7ac\ud560 \uacbd\uc6b0 \uc0ad\uc81c\ud558\ub294 \ucf54\ub4dc\uc774\ub2e4.<br>\ub9cc\uc57d \ud589\uc774 \uc544\ub2cc \uc5f4\uc744 \uc0ad\uc81c\ud560 \uacbd\uc6b0 axis\ub97c 0\uc73c\ub85c \ubc14\uafd4\uc8fc\uba74 \ub41c\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub370\uc774\ud130 scraping \ud6c4 table\uc744 pandas DataFrame\uc73c\ub85c \ubcc0\ud658\ud588\uc744 \ub54c \uc4f8\ubaa8\uc5c6\ub294 \ud589\uc774\ub098 \uc5f4\uc774 \ud568\uaed8 \ub4e4\uc5b4\uc624\ub294 \uacbd\uc6b0\uac00 \uc788\ub2e4.\uc815\uc0c1\uc801\uc778 \ud14c\uc774\ube14\uc5d0 \uac12\ub9cc null\uc774\ub77c\uba74 df.dropna()\ub85c \ucc98\ub9ac\ud558\uba74 \uac04\ud3b8\ud558\uc9c0\ub9cc \uadf8\uac8c \uc544\ub2cc \uc0c1\ud669\uc77c \uacbd\uc6b0 (\uc608\ub97c\ub4e4\uc5b4 \uc2a4\ud06c\ub7a9\ud551 \ud55c \ud398\uc774\uc9c0\uc758 pagination \ub54c\ubb38\uc774\ub784\uc9c0..)\ubd88\ud544\uc694\ud55c \ud589\uc774 \uc874\uc7ac\ud558\ub294\uc9c0 \uc5ec\ubd80\uc5d0 \ub530\ub77c \uc0ad\uc81c\ub97c \ud574\uc8fc\uc5b4\uc57c \ud55c\ub2e4. \ub098\ub294 \uc544\ub798\uc640 \uac19\uc774 \ucc98\ub9ac\ud558\uc600\ub2e4. if 0 in df: df = df.drop([0], axis=1) df\uc5d0 0\uc774\ub77c\ub294 \ud589\uc774 \uc874\uc7ac\ud560 \uacbd\uc6b0 &hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[514,517,4],"tags":[521,522,523,515,518,520],"_links":{"self":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1845"}],"collection":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1845"}],"version-history":[{"count":2,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1845\/revisions"}],"predecessor-version":[{"id":1847,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1845\/revisions\/1847"}],"wp:attachment":[{"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itchefblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}