{"id":17910,"date":"2023-10-09T08:03:09","date_gmt":"2023-10-09T01:03:09","guid":{"rendered":"https:\/\/www.thegioimaychu.vn\/blog\/?p=17910"},"modified":"2023-10-09T08:03:09","modified_gmt":"2023-10-09T01:03:09","slug":"xu-ly-du-lieu-voi-pandas-trong-python","status":"publish","type":"post","link":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/","title":{"rendered":"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python"},"content":{"rendered":"<style>.iblink{color:#975!important;}.iblink:hover{color:orange!important;}<\/style><h2>Pandas<\/h2>\n<p>Pandas l\u00e0 th\u01b0 vi\u1ec7n ph\u1ea7n m\u1ec1m ph\u1ed5 bi\u1ebfn nh\u1ea5t \u0111\u1ec3 thao t\u00e1c v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u cho ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh\u00a0<a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python.<\/a><\/p>\n<h2>Pandas l\u00e0 g\u00ec?<\/h2>\n<p>L\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n ph\u1ea7n m\u1ec1m m\u00e3 ngu\u1ed3n m\u1edf \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng d\u1ef1a tr\u00ean Python d\u00e0nh ri\u00eang cho thao t\u00e1c v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u, Pandas cung c\u1ea5p c\u1ea5u tr\u00fac v\u00e0 ho\u1ea1t \u0111\u1ed9ng d\u1eef li\u1ec7u \u0111\u1ec3 ph\u00e2n t\u00edch v\u00e0 thao t\u00e1c d\u1eef li\u1ec7u m\u1ea1nh m\u1ebd, linh ho\u1ea1t v\u00e0 d\u1ec5 s\u1eed d\u1ee5ng.\u00a0Pandas c\u1ee7ng c\u1ed1 Python b\u1eb1ng c\u00e1ch cung c\u1ea5p cho ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh ph\u1ed5 bi\u1ebfn kh\u1ea3 n\u0103ng ho\u1ea1t \u0111\u1ed9ng v\u1edbi d\u1eef li\u1ec7u gi\u1ed1ng nh\u01b0 b\u1ea3ng t\u00ednh, cho ph\u00e9p t\u1ea3i, c\u0103n ch\u1ec9nh, thao t\u00e1c v\u00e0 h\u1ee3p nh\u1ea5t nhanh ch\u00f3ng, b\u00ean c\u1ea1nh c\u00e1c ch\u1ee9c n\u0103ng ch\u00ednh kh\u00e1c.\u00a0Pandas \u0111\u01b0\u1ee3c \u0111\u00e1nh gi\u00e1 cao v\u00ec cung c\u1ea5p hi\u1ec7u su\u1ea5t \u0111\u01b0\u1ee3c t\u1ed1i \u01b0u h\u00f3a cao khi m\u00e3 ngu\u1ed3n back-end \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng\u00a0<a href=\"https:\/\/en.wikipedia.org\/wiki\/C_(programming_language)\">C<\/a>\u00a0ho\u1eb7c Python.<\/p>\n<p>C\u00e1i t\u00ean &#8216;Pandas&#8217; xu\u1ea5t ph\u00e1t t\u1eeb thu\u1eadt ng\u1eef kinh t\u1ebf l\u01b0\u1ee3ng &#8216;d\u1eef li\u1ec7u b\u1ea3ng&#8217; (panel data) m\u00f4 t\u1ea3 c\u00e1c t\u1eadp d\u1eef li\u1ec7u bao g\u1ed3m c\u00e1c quan s\u00e1t trong nhi\u1ec1u kho\u1ea3ng th\u1eddi gian.\u00a0Th\u01b0 vi\u1ec7n Pandas \u0111\u01b0\u1ee3c t\u1ea1o ra nh\u01b0 m\u1ed9t c\u00f4ng c\u1ee5 ho\u1eb7c kh\u1ed1i x\u00e2y d\u1ef1ng c\u1ea5p cao \u0111\u1ec3 th\u1ef1c hi\u1ec7n ph\u00e2n t\u00edch th\u1ebf gi\u1edbi th\u1ef1c r\u1ea5t th\u1ef1c t\u1ebf b\u1eb1ng Python.\u00a0Trong t\u01b0\u01a1ng lai, nh\u1eefng ng\u01b0\u1eddi t\u1ea1o ra n\u00f3 d\u1ef1 \u0111\u1ecbnh Pandas s\u1ebd ph\u00e1t tri\u1ec3n th\u00e0nh c\u00f4ng c\u1ee5 x\u1eed l\u00fd d\u1eef li\u1ec7u v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u m\u00e3 ngu\u1ed3n m\u1edf m\u1ea1nh m\u1ebd v\u00e0 linh ho\u1ea1t nh\u1ea5t cho b\u1ea5t k\u1ef3 ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh n\u00e0o.<\/p>\n<p>\u0110i\u1ec1u m\u00e0 m\u1ed9t s\u1ed1 ng\u01b0\u1eddi g\u1ecdi l\u00e0 &#8216;c\u00f4ng c\u1ee5 thay \u0111\u1ed5i cu\u1ed9c ch\u01a1i&#8217; \u0111\u1ec3 ph\u00e2n t\u00edch d\u1eef li\u1ec7u b\u1eb1ng Python, Pandas \u0111\u01b0\u1ee3c x\u1ebfp h\u1ea1ng trong s\u1ed1 c\u00e1c c\u00f4ng c\u1ee5 ph\u1ed5 bi\u1ebfn v\u00e0 \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng r\u1ed9ng r\u00e3i nh\u1ea5t cho c\u00e1i g\u1ecdi l\u00e0\u00a0s\u1eafp x\u1ebfp ho\u1eb7c tr\u1ed9n\u00a0<a href=\"https:\/\/www.trifacta.com\/data-wrangling\/\" target=\"_blank\" rel=\"noopener noreferrer\">d\u1eef li\u1ec7u.<\/a> \u0110i\u1ec1u n\u00e0y m\u00f4 t\u1ea3 m\u1ed9t t\u1eadp h\u1ee3p c\u00e1c kh\u00e1i ni\u1ec7m v\u00e0 ph\u01b0\u01a1ng ph\u00e1p \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng khi l\u1ea5y d\u1eef li\u1ec7u t\u1eeb c\u00e1c d\u1ea1ng kh\u00f4ng s\u1eed d\u1ee5ng \u0111\u01b0\u1ee3c ho\u1eb7c c\u00f3 l\u1ed7i \u0111\u1ebfn m\u1ee9c \u0111\u1ed9 c\u1ea5u tr\u00fac v\u00e0 ch\u1ea5t l\u01b0\u1ee3ng c\u1ea7n thi\u1ebft \u0111\u1ec3 x\u1eed l\u00fd ph\u00e2n t\u00edch hi\u1ec7n \u0111\u1ea1i.\u00a0Pandas v\u01b0\u1ee3t tr\u1ed9i \u1edf ch\u1ed7 d\u1ec5 d\u00e0ng l\u00e0m vi\u1ec7c v\u1edbi c\u00e1c \u0111\u1ecbnh d\u1ea1ng d\u1eef li\u1ec7u c\u00f3 c\u1ea5u tr\u00fac nh\u01b0 b\u1ea3ng, ma tr\u1eadn v\u00e0 d\u1eef li\u1ec7u chu\u1ed7i th\u1eddi gian. Ho\u1ea1t \u0111\u1ed9ng t\u1ed1t v\u1edbi c\u00e1c th\u01b0 vi\u1ec7n khoa h\u1ecdc Python kh\u00e1c.<\/p>\r\n\t\t\t\t<div class=\"tgmcad hor\" style=\"text-align:center;margin:30px 0; padding: 10px 0; border-radius:5px; border-top:solid 1px #ccc; border-bottom:solid 1px #ccc; \">\r\n\t\t\t\t<a href=\"https:\/\/thegioimaychu.vn\/giai-phap\/deep-learning\/\"><img decoding=\"async\" alt=\"Gi\u1ea3i ph\u00e1p h\u1ea1 t\u1ea7ng Deep Learning, Tr\u00ed tu\u1ec7 Nh\u00e2n t\u1ea1o - AI\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2019\/11\/tgmc-deep-learning.jpg\" \/><\/a>\r\n\t\t\t\t<\/div>\n<h2>C\u00e1ch ho\u1ea1t \u0111\u1ed9ng c\u1ee7a Pandas<\/h2>\n<p>Bao g\u1ed3m trong th\u01b0 vi\u1ec7n m\u00e3 ngu\u1ed3n m\u1edf Pandas l\u00e0 DataFrames, l\u00e0 c\u00e1c b\u1ea3ng d\u1eef li\u1ec7u gi\u1ed1ng nh\u01b0 array hai chi\u1ec1u, trong \u0111\u00f3 m\u1ed7i c\u1ed9t ch\u1ee9a c\u00e1c gi\u00e1 tr\u1ecb c\u1ee7a m\u1ed9t bi\u1ebfn v\u00e0 m\u1ed7i h\u00e0ng ch\u1ee9a m\u1ed9t b\u1ed9 gi\u00e1 tr\u1ecb t\u1eeb m\u1ed7i c\u1ed9t.\u00a0D\u1eef li\u1ec7u \u0111\u01b0\u1ee3c l\u01b0u tr\u1eef trong DataFrame c\u00f3 th\u1ec3 \u1edf d\u1ea1ng s\u1ed1, h\u1ec7 s\u1ed1 ho\u1eb7c k\u00fd t\u1ef1.\u00a0Pandas DataFrames \u0111\u01b0\u1ee3c coi l\u00e0 m\u1ed9t t\u1eeb \u0111i\u1ec3n ho\u1eb7c t\u1eadp h\u1ee3p c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng chu\u1ed7i.<\/p>\n<p>C\u00e1c nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u v\u00e0 l\u1eadp tr\u00ecnh vi\u00ean quen thu\u1ed9c v\u1edbi ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh\u00a0<a href=\"https:\/\/www.r-project.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">R<\/a>\u00a0cho t\u00ednh to\u00e1n th\u1ed1ng k\u00ea bi\u1ebft r\u1eb1ng DataFrames l\u00e0 m\u1ed9t c\u00e1ch l\u01b0u tr\u1eef d\u1eef li\u1ec7u trong c\u00e1c l\u01b0\u1edbi c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng xem x\u00e9t t\u1ed5ng quan.\u00a0\u0110i\u1ec1u n\u00e0y c\u00f3 ngh\u0129a l\u00e0 Pandas ch\u1ee7 y\u1ebfu \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho h\u1ecdc m\u00e1y d\u01b0\u1edbi d\u1ea1ng DataFrames.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b1f7e57e.png\" alt=\"\" \/><\/p>\n<p>Pandas cho ph\u00e9p nh\u1eadp v\u00e0 xu\u1ea5t d\u1eef li\u1ec7u d\u1ea1ng b\u1ea3ng \u1edf nhi\u1ec1u \u0111\u1ecbnh d\u1ea1ng kh\u00e1c nhau, ch\u1eb3ng h\u1ea1n nh\u01b0 t\u1ec7p CSV ho\u1eb7c JSON.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b21144ca.png\" alt=\"\" \/><\/p>\n<p>Pandas c\u0169ng cho ph\u00e9p th\u1ef1c hi\u1ec7n nhi\u1ec1u thao t\u00e1c d\u1eef li\u1ec7u kh\u00e1c nhau v\u00e0 th\u1ef1c hi\u1ec7n c\u00e1c t\u00ednh n\u0103ng l\u00e0m s\u1ea1ch d\u1eef li\u1ec7u, bao g\u1ed3m ch\u1ecdn t\u1eadp h\u1ee3p con, t\u1ea1o c\u1ed9t d\u1eabn xu\u1ea5t, s\u1eafp x\u1ebfp, n\u1ed1i, \u0111i\u1ec1n, thay th\u1ebf, th\u1ed1ng k\u00ea t\u00f3m t\u1eaft v\u00e0 v\u1ebd bi\u1ec3u \u0111\u1ed3.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b220b341.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b225e60f.png\" alt=\"\" \/><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b22b1a82.png\" alt=\"\" \/><\/p>\n<p>Theo c\u00e1c nh\u00e0 t\u1ed5 ch\u1ee9c\u00a0<a href=\"https:\/\/pypi.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python Package Index<\/a> kho l\u01b0u tr\u1eef ph\u1ea7n m\u1ec1m d\u00e0nh cho ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python, Pandas r\u1ea5t ph\u00f9 h\u1ee3p \u0111\u1ec3 l\u00e0m vi\u1ec7c v\u1edbi nhi\u1ec1u lo\u1ea1i d\u1eef li\u1ec7u, bao g\u1ed3m:<\/p>\n<ul>\n<li>D\u1eef li\u1ec7u d\u1ea1ng b\u1ea3ng v\u1edbi c\u00e1c c\u1ed9t \u0111\u01b0\u1ee3c nh\u1eadp kh\u00f4ng \u0111\u1ed3ng nh\u1ea5t, nh\u01b0 trong b\u1ea3ng SQL ho\u1eb7c b\u1ea3ng t\u00ednh Excel<\/li>\n<li>D\u1eef li\u1ec7u chu\u1ed7i th\u1eddi gian c\u00f3 th\u1ee9 t\u1ef1 v\u00e0 kh\u00f4ng c\u00f3 th\u1ee9 t\u1ef1 (kh\u00f4ng nh\u1ea5t thi\u1ebft ph\u1ea3i c\u00f3 t\u1ea7n s\u1ed1 c\u1ed1 \u0111\u1ecbnh)<\/li>\n<li>D\u1eef li\u1ec7u ma tr\u1eadn t\u00f9y \u00fd (\u0111\u01b0\u1ee3c \u0111\u1ed3ng nh\u1ea5t ho\u1eb7c kh\u00f4ng \u0111\u1ed3ng nh\u1ea5t) v\u1edbi nh\u00e3n h\u00e0ng v\u00e0 c\u1ed9t<\/li>\n<\/ul>\n<p>B\u1ea5t k\u1ef3 d\u1ea1ng t\u1eadp d\u1eef li\u1ec7u quan s\u00e1t\/th\u1ed1ng k\u00ea n\u00e0o kh\u00e1c.\u00a0D\u1eef li\u1ec7u th\u1ef1c s\u1ef1 kh\u00f4ng c\u1ea7n ph\u1ea3i \u0111\u01b0\u1ee3c g\u1eafn nh\u00e3n \u0111\u1ec3 \u0111\u01b0\u1ee3c \u0111\u1eb7t v\u00e0o c\u1ea5u tr\u00fac d\u1eef li\u1ec7u pandas.<\/p>\n<h2>L\u1ee3i \u00edch c\u1ee7a Pandas<\/h2>\n<p>M\u1ed9t l\u1ea7n n\u1eefa, theo c\u00e1c nh\u00e0 t\u1ed5 ch\u1ee9c Python Package Index, Pandas mang l\u1ea1i m\u1ed9t s\u1ed1 l\u1ee3i \u00edch ch\u00ednh cho c\u00e1c nh\u00e0 khoa h\u1ecdc c\u0169ng nh\u01b0 nh\u00e0 ph\u00e1t tri\u1ec3n d\u1eef li\u1ec7u, bao g\u1ed3m:<\/p>\n<ul>\n<li>D\u1ec5 d\u00e0ng x\u1eed l\u00fd d\u1eef li\u1ec7u b\u1ecb thi\u1ebfu (\u0111\u01b0\u1ee3c bi\u1ec3u th\u1ecb b\u1eb1ng NaN) trong c\u1ea3 d\u1eef li\u1ec7u d\u1ea5u ph\u1ea9y \u0111\u1ed9ng v\u00e0 kh\u00f4ng d\u1ea5u ph\u1ea9y \u0111\u1ed9ng<\/li>\n<li>Kh\u1ea3 n\u0103ng thay \u0111\u1ed5i k\u00edch th\u01b0\u1edbc: c\u00e1c c\u1ed9t c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c ch\u00e8n v\u00e0 x\u00f3a kh\u1ecfi DataFrames v\u00e0 c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng c\u00f3 chi\u1ec1u cao h\u01a1n<\/li>\n<li>C\u0103n ch\u1ec9nh d\u1eef li\u1ec7u t\u1ef1 \u0111\u1ed9ng v\u00e0 r\u00f5 r\u00e0ng: c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c c\u0103n ch\u1ec9nh r\u00f5 r\u00e0ng theo m\u1ed9t t\u1eadp h\u1ee3p nh\u00e3n ho\u1eb7c ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 ch\u1ec9 c\u1ea7n b\u1ecf qua c\u00e1c nh\u00e3n v\u00e0 \u0111\u1ec3 chu\u1ed7i, DataFrame, v.v. t\u1ef1 \u0111\u1ed9ng c\u0103n ch\u1ec9nh d\u1eef li\u1ec7u trong c\u00e1c t\u00ednh to\u00e1n<\/li>\n<li>Ch\u1ee9c n\u0103ng nh\u00f3m m\u1ea1nh m\u1ebd, linh ho\u1ea1t \u0111\u1ec3 th\u1ef1c hi\u1ec7n c\u00e1c thao t\u00e1c ph\u00e2n t\u00e1ch-\u00e1p d\u1ee5ng-k\u1ebft h\u1ee3p tr\u00ean c\u00e1c t\u1eadp d\u1eef li\u1ec7u cho c\u1ea3 vi\u1ec7c t\u1ed5ng h\u1ee3p v\u00e0 chuy\u1ec3n \u0111\u1ed5i d\u1eef li\u1ec7u<\/li>\n<li>Gi\u00fap d\u1ec5 d\u00e0ng chuy\u1ec3n \u0111\u1ed5i d\u1eef li\u1ec7u r\u1eddi r\u1ea1c, \u0111\u01b0\u1ee3c l\u1eadp ch\u1ec9 m\u1ee5c kh\u00e1c nhau trong c\u00e1c c\u1ea5u tr\u00fac d\u1eef li\u1ec7u Python v\u00e0 Numpy kh\u00e1c th\u00e0nh c\u00e1c \u0111\u1ed1i t\u01b0\u1ee3ng DataFrame<\/li>\n<li>Ph\u00e2n chia d\u1ef1a tr\u00ean nh\u00e3n th\u00f4ng minh, l\u1eadp ch\u1ec9 m\u1ee5c \u01b0a th\u00edch v\u00e0 t\u1eadp h\u1ee3p c\u00e1c t\u1eadp d\u1eef li\u1ec7u l\u1edbn<\/li>\n<li>H\u1ee3p nh\u1ea5t v\u00e0 n\u1ed1i c\u00e1c t\u1eadp d\u1eef li\u1ec7u tr\u1ef1c quan<\/li>\n<li>\u0110\u1ecbnh h\u00ecnh l\u1ea1i v\u00e0 xoay v\u00f2ng c\u00e1c t\u1eadp d\u1eef li\u1ec7u m\u1ed9t c\u00e1ch linh ho\u1ea1t<\/li>\n<li>Ghi nh\u00e3n theo c\u1ea5p b\u1eadc c\u1ee7a tr\u1ee5c<\/li>\n<li>C\u00e1c c\u00f4ng c\u1ee5 I\/O m\u1ea1nh m\u1ebd \u0111\u1ec3 t\u1ea3i d\u1eef li\u1ec7u t\u1eeb c\u00e1c t\u1ec7p ph\u1eb3ng (CSV v\u00e0 \u0111\u01b0\u1ee3c ph\u00e2n t\u00e1ch), t\u1ec7p Excel, c\u01a1 s\u1edf d\u1eef li\u1ec7u v\u00e0 l\u01b0u\/t\u1ea3i d\u1eef li\u1ec7u t\u1eeb \u0111\u1ecbnh d\u1ea1ng HDF5 c\u1ef1c nhanh<\/li>\n<li>Ch\u1ee9c n\u0103ng d\u00e0nh ri\u00eang cho chu\u1ed7i th\u1eddi gian: t\u1ea1o ph\u1ea1m vi ng\u00e0y v\u00e0 chuy\u1ec3n \u0111\u1ed5i t\u1ea7n s\u1ed1, th\u1ed1ng k\u00ea c\u1eeda s\u1ed5 \u0111\u1ed9ng, thay \u0111\u1ed5i ng\u00e0y v\u00e0 \u0111\u1ed9 tr\u1ec5<\/li>\n<\/ul>\n<p>C\u00e1c l\u1ee3i \u00edch b\u1ed5 sung c\u00f3 \u0111\u01b0\u1ee3c t\u1eeb th\u01b0 vi\u1ec7n Pandas bao g\u1ed3m c\u0103n ch\u1ec9nh d\u1eef li\u1ec7u v\u00e0 x\u1eed l\u00fd t\u00edch h\u1ee3p d\u1eef li\u1ec7u b\u1ecb thi\u1ebfu;\u00a0h\u1ee3p nh\u1ea5t v\u00e0 n\u1ed1i c\u00e1c t\u1eadp d\u1eef li\u1ec7u;\u00a0\u0111\u1ecbnh h\u00ecnh l\u1ea1i v\u00e0 xoay v\u00f2ng c\u00e1c t\u1eadp d\u1eef li\u1ec7u;\u00a0l\u1eadp ch\u1ec9 m\u1ee5c tr\u1ee5c ph\u00e2n c\u1ea5p \u0111\u1ec3 l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u cao h\u01a1n trong c\u1ea5u tr\u00fac d\u1eef li\u1ec7u chi\u1ec1u th\u1ea5p h\u01a1n;\u00a0v\u00e0 ph\u00e2n chia d\u1ef1a tr\u00ean nh\u00e3n.<\/p>\n<h2>Python v\u00e0 Pandas<\/h2>\n<p>V\u00ec Pandas \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng d\u1ef1a tr\u00ean ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh\u00a0<a href=\"https:\/\/www.python.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Python<\/a>\u00a0n\u00ean c\u1ea7n c\u00f3 m\u1ed9t b\u00e0i \u0111\u00e1nh gi\u00e1 ng\u1eafn g\u1ecdn v\u1ec1 ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh Python.<\/p>\n<p>\u0110\u01b0\u1ee3c c\u00e1c nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u y\u00eau th\u00edch nh\u1edd t\u00ednh d\u1ec5 s\u1eed d\u1ee5ng, Python \u0111\u00e3 ph\u00e1t tri\u1ec3n s\u1edbm nh\u1ea5t v\u00e0o n\u0103m 1991 \u0111\u1ec3 tr\u1edf th\u00e0nh m\u1ed9t trong nh\u1eefng ng\u00f4n ng\u1eef l\u1eadp tr\u00ecnh ph\u1ed5 bi\u1ebfn nh\u1ea5t cho c\u00e1c \u1ee9ng d\u1ee5ng web, ph\u00e2n t\u00edch d\u1eef li\u1ec7u v\u00e0 h\u1ecdc m\u00e1y.<\/p>\n<p>T\u00ednh d\u1ec5 s\u1eed d\u1ee5ng c\u1ee7a Python ngay c\u1ea3 nh\u1eefng ng\u01b0\u1eddi m\u1edbi b\u1eaft \u0111\u1ea7u c\u0169ng c\u00f3 th\u1ec3 t\u1ea1o ra c\u00e1c ch\u01b0\u01a1ng tr\u00ecnh v\u1edbi th\u1eddi gian \u0111\u1ea7u t\u01b0 ban \u0111\u1ea7u t\u01b0\u01a1ng \u0111\u1ed1i \u00edt nh\u1edd c\u00fa ph\u00e1p r\u1ea5t d\u1ec5 \u0111\u1ecdc c\u1ee7a Python.\u00a0\u0110i\u1ec1u n\u00e0y c\u00f3 ngh\u0129a l\u00e0 c\u00e1c nh\u00e0 ph\u00e1t tri\u1ec3n v\u00e0 nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u d\u00e0nh nhi\u1ec1u th\u1eddi gian h\u01a1n \u0111\u1ec3 gi\u1ea3i quy\u1ebft c\u00e1c v\u1ea5n \u0111\u1ec1 kinh doanh v\u00e0 \u00edt th\u1eddi gian h\u01a1n \u0111\u1ec3 v\u1eadt l\u1ed9n v\u1edbi s\u1ef1 ph\u1ee9c t\u1ea1p v\u1ec1 ng\u00f4n ng\u1eef.<\/p>\n<p>Python ch\u1ea1y tr\u00ean m\u1ecdi h\u1ec7 \u0111i\u1ec1u h\u00e0nh quan tr\u1ecdng \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng hi\u1ec7n nay, c\u0169ng nh\u01b0 c\u00e1c th\u01b0 vi\u1ec7n l\u1edbn ngo\u00e0i Pandas.\u00a0C\u00e1c d\u1ecbch v\u1ee5 API c\u0169ng c\u00f3 li\u00ean k\u1ebft Python hay c\u00f2n g\u1ecdi l\u00e0 tr\u00ecnh bao b\u1ecdc.\u00a0\u0110i\u1ec1u n\u00e0y cho ph\u00e9p Python giao ti\u1ebfp v\u1edbi c\u00e1c d\u1ecbch v\u1ee5 v\u00e0 th\u01b0 vi\u1ec7n kh\u00e1c.<\/p>\n<p>Ngo\u00e0i t\u00ednh d\u1ec5 s\u1eed d\u1ee5ng, Python c\u00f2n tr\u1edf th\u00e0nh \u1ee9ng d\u1ee5ng y\u00eau th\u00edch c\u1ee7a c\u00e1c nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u v\u00e0 nh\u00e0 ph\u00e1t tri\u1ec3n h\u1ecdc m\u00e1y v\u00ec m\u1ed9t l\u00fd do ch\u00ednh \u0111\u00e1ng kh\u00e1c.\u00a0V\u1edbi s\u1ef1 s\u1eb5n c\u00f3 ng\u00e0y nay c\u1ee7a c\u00e1c th\u01b0 vi\u1ec7n x\u1eed l\u00fd d\u1eef li\u1ec7u nh\u01b0 Pandas v\u00e0\u00a0<a href=\"https:\/\/numpy.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Numpy<\/a>\u00a0c\u0169ng nh\u01b0 v\u1edbi c\u00e1c c\u00f4ng c\u1ee5 tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u nh\u01b0\u00a0<a href=\"https:\/\/seaborn.pydata.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Seaborn<\/a>\u00a0v\u00e0\u00a0<a href=\"https:\/\/matplotlib.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">Matplotlib<\/a>, Python l\u00e0 ng\u00f4n ng\u1eef chung cho h\u1ecdc m\u00e1y c\u0169ng nh\u01b0 c\u00e1c nh\u00e0 khoa h\u1ecdc v\u00e0 nh\u00e0 ph\u00e1t tri\u1ec3n d\u1eef li\u1ec7u x\u00e2y d\u1ef1ng h\u1ec7 th\u1ed1ng h\u1ecdc m\u00e1y.<\/p>\n<h2>Padas v\u00e0 nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u<\/h2>\n<p>Pandas gi\u1ea3i quy\u1ebft nhi\u1ec1u khuy\u1ebft \u0111i\u1ec3m m\u00e0 c\u00e1c nh\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u th\u01b0\u1eddng g\u1eb7p ph\u1ea3i khi s\u1eed d\u1ee5ng c\u00e1c ng\u00f4n ng\u1eef g\u1eafn li\u1ec1n v\u1edbi m\u00f4i tr\u01b0\u1eddng nghi\u00ean c\u1ee9u khoa h\u1ecdc v\u00e0 kinh doanh.\u00a0Trong khoa h\u1ecdc d\u1eef li\u1ec7u, l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u th\u01b0\u1eddng \u0111\u01b0\u1ee3c chia th\u00e0nh nhi\u1ec1u giai \u0111o\u1ea1n, bao g\u1ed3m c\u1ea3 qu\u00e1 tr\u00ecnh tr\u1ed9n v\u00e0 l\u00e0m s\u1ea1ch d\u1eef li\u1ec7u \u0111\u00e3 n\u00f3i \u1edf tr\u00ean;\u00a0ph\u00e2n t\u00edch v\u00e0 m\u00f4 h\u00ecnh h\u00f3a d\u1eef li\u1ec7u;\u00a0v\u00e0 t\u1ed5 ch\u1ee9c vi\u1ec7c ph\u00e2n t\u00edch th\u00e0nh m\u1ed9t h\u00ecnh th\u1ee9c ph\u00f9 h\u1ee3p \u0111\u1ec3 v\u1ebd \u0111\u1ed3 th\u1ecb ho\u1eb7c tr\u00ecnh b\u00e0y d\u01b0\u1edbi d\u1ea1ng b\u1ea3ng.\u00a0\u0110\u1ed1i v\u1edbi nh\u1eefng nhi\u1ec7m v\u1ee5 n\u00e0y v\u00e0 c\u00e1c nhi\u1ec7m v\u1ee5 khoa h\u1ecdc d\u1eef li\u1ec7u quan tr\u1ecdng kh\u00e1c, Pandas v\u01b0\u1ee3t tr\u1ed9i.<\/p>\n<h2 class=\"title color-black h2 uppercase\">DataFrames \u0111\u01b0\u1ee3c t\u0103ng t\u1ed1c v\u1edbi GPU<\/h2>\n<p>CPU bao g\u1ed3m m\u1ed9t s\u1ed1 cores, \u0111\u01b0\u1ee3c t\u1ed1i \u01b0u h\u00f3a \u0111\u1ec3 x\u1eed l\u00fd n\u1ed1i ti\u1ebfp tu\u1ea7n t\u1ef1, trong khi GPU c\u00f3 ki\u1ebfn \u200b\u200btr\u00fac song song l\u1edbn bao g\u1ed3m h\u00e0ng ngh\u00ecn cores, hi\u1ec7u qu\u1ea3 h\u01a1n \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 x\u1eed l\u00fd nhi\u1ec1u t\u00e1c v\u1ee5 c\u00f9ng m\u1ed9t l\u00fac.\u00a0GPU c\u00f3 kh\u1ea3 n\u0103ng x\u1eed l\u00fd d\u1eef li\u1ec7u nhanh h\u01a1n nhi\u1ec1u so v\u1edbi c\u1ea5u h\u00ecnh ch\u1ec9 c\u00f3 CPU.\u00a0Ch\u00fang c\u0169ng ph\u1ed5 bi\u1ebfn v\u00ec hi\u1ec7u su\u1ea5t th\u1ea5t b\u1ea1i c\u1ef1c k\u1ef3 th\u1ea5p v\u00e0 \u0111ang gi\u1ea3i quy\u1ebft n\u00fat th\u1eaft hi\u1ec7u su\u1ea5t \u0111i\u1ec7n to\u00e1n ng\u00e0y nay b\u1eb1ng c\u00e1ch t\u0103ng t\u1ed1c c\u00e1c m\u00e1y ch\u1ee7 multi-core \u0111\u1ec3 x\u1eed l\u00fd song song.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b230dafa.jpg\" alt=\"\" \/><\/p>\n<p>GPU \u0111\u00e3 g\u00f3p ph\u1ea7n th\u00fac \u0111\u1ea9y s\u1ef1 ph\u00e1t tri\u1ec3n c\u1ee7a h\u1ecdc s\u00e2u trong v\u00e0i n\u0103m qua, trong khi ETL v\u00e0 kh\u1ed1i l\u01b0\u1ee3ng c\u00f4ng vi\u1ec7c h\u1ecdc m\u00e1y truy\u1ec1n th\u1ed1ng ti\u1ebfp t\u1ee5c \u0111\u01b0\u1ee3c vi\u1ebft b\u1eb1ng Python, th\u01b0\u1eddng b\u1eb1ng c\u00e1c c\u00f4ng c\u1ee5 \u0111\u01a1n lu\u1ed3ng nh\u01b0 Scikit-Learn ho\u1eb7c c\u00e1c gi\u1ea3i ph\u00e1p ph\u00e2n t\u00e1n l\u1edbn, nhi\u1ec1u CPU nh\u01b0 Spark.<\/p>\n<p>NVIDIA \u0111\u00e3 ph\u00e1t tri\u1ec3n c\u00f4ng c\u1ee5 RAPIDS m\u1ed9t n\u1ec1n t\u1ea3ng t\u0103ng t\u1ed1c h\u1ecdc m\u00e1y v\u00e0 ph\u00e2n t\u00edch d\u1eef li\u1ec7u m\u00e3 ngu\u1ed3n m\u1edf \u0111\u1ec3 th\u1ef1c thi c\u00e1c quy tr\u00ecnh \u0111\u00e0o t\u1ea1o khoa h\u1ecdc d\u1eef li\u1ec7u to\u00e0n di\u1ec7n ho\u00e0n to\u00e0n b\u1eb1ng GPU.\u00a0D\u1ef1a tr\u00ean c\u00e1c nguy\u00ean h\u00e0m NVIDIA CUDA \u0111\u1ec3 t\u1ed1i \u01b0u h\u00f3a t\u00ednh to\u00e1n \u1edf m\u1ee9c \u0111\u1ed9 th\u1ea5p, nh\u01b0ng b\u1ed9c l\u1ed9 t\u00ednh song song c\u1ee7a GPU v\u00e0 b\u0103ng th\u00f4ng b\u1ed9 nh\u1edb cao th\u00f4ng qua giao di\u1ec7n Python th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng.<\/p>\n<p>T\u1eadp trung v\u00e0o c\u00e1c nhi\u1ec7m v\u1ee5 chu\u1ea9n b\u1ecb d\u1eef li\u1ec7u ph\u1ed5 bi\u1ebfn cho ph\u00e2n t\u00edch v\u00e0 khoa h\u1ecdc d\u1eef li\u1ec7u, RAPIDS cung c\u1ea5p DataFrame \u0111\u01b0\u1ee3c t\u0103ng t\u1ed1c b\u1edfi GPU v\u1edbi API Pandas v\u00e0 \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean Apache Arrow.\u00a0T\u00edch h\u1ee3p v\u1edbi scikit-learn v\u00e0 nhi\u1ec1u thu\u1eadt to\u00e1n h\u1ecdc m\u00e1y kh\u00e1c nhau \u0111\u1ec3 t\u1ed1i \u0111a h\u00f3a kh\u1ea3 n\u0103ng t\u01b0\u01a1ng t\u00e1c v\u00e0 hi\u1ec7u su\u1ea5t m\u00e0 kh\u00f4ng ph\u1ea3i tr\u1ea3 chi ph\u00ed tu\u1ea7n t\u1ef1 h\u00f3a th\u00f4ng th\u01b0\u1eddng.\u00a0\u0110i\u1ec1u n\u00e0y cho ph\u00e9p t\u0103ng t\u1ed1c quy tr\u00ecnh t\u1eeb \u0111\u1ea7u \u0111\u1ebfn cu\u1ed1i t\u1eeb chu\u1ea9n b\u1ecb d\u1eef li\u1ec7u \u0111\u1ebfn h\u1ecdc m\u00e1y cho \u0111\u1ebfn h\u1ecdc s\u00e2u.\u00a0RAPIDS c\u0169ng bao g\u1ed3m h\u1ed7 tr\u1ee3 tri\u1ec3n khai nhi\u1ec1u node, nhi\u1ec1u GPU, cho ph\u00e9p x\u1eed l\u00fd v\u00e0 \u0111\u00e0o t\u1ea1o \u0111\u01b0\u1ee3c t\u0103ng t\u1ed1c \u0111\u00e1ng k\u1ec3 tr\u00ean c\u00e1c k\u00edch th\u01b0\u1edbc t\u1eadp d\u1eef li\u1ec7u l\u1edbn.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/tgmc-blog-651b7b239c789.png\" alt=\"\" \/><\/p>\n<div>____<br \/><b>B\u00e0i vi\u1ebft li\u00ean quan<\/b><\/div>\n<ul>\n<li><a href=\"https:\/\/thegioimaychu.vn\/blog\/?post_type=post&#038;p=23415\">B\u01b0\u1edbc v\u00e0o k\u1ef7 nguy\u00ean tr\u1ee3 l\u00fd AI c\u00e1 nh\u00e2n &#8211; so s\u00e1nh chi ti\u1ebft NVIDIA RTX Spark v\u00e0 DGX Spark<\/a><\/li>\n<li><a href=\"https:\/\/thegioimaychu.vn\/blog\/?post_type=post&#038;p=23322\">NVIDIA RTX PRO 4500 Blackwell Server Edition: B\u01b0\u1edbc nh\u1ea3y v\u1ecdt t\u1eeb th\u1ebf h\u1ec7 L4 cho h\u1ea1 t\u1ea7ng AI suy lu\u1eadn hi\u1ec7u n\u0103ng cao<\/a><\/li>\n<li><a href=\"https:\/\/thegioimaychu.vn\/blog\/?post_type=post&#038;p=23119\">NVIDIA NGC\u2011ready Low\u2011latency Edge AI: Gi\u1ea3i ph\u00e1p cho Retail, Manufacturing v\u00e0 Smart Cities<\/a><\/li>\n<li><a href=\"https:\/\/thegioimaychu.vn\/blog\/?post_type=post&#038;p=23110\">So s\u00e1nh s\u1ee9c m\u1ea1nh c\u1ee7a m\u00e1y t\u00ednh AI DGX Spark v\u1edbi c\u00e1c card GPU m\u00e1y tr\u1ea1m chuy\u00ean nghi\u1ec7p c\u1ee7a NVIDIA<\/a><\/li>\n<li><a href=\"https:\/\/thegioimaychu.vn\/blog\/?post_type=post&#038;p=22969\">T\u1eeb Orin \u0111\u1ebfn Thor: B\u01b0\u1edbc nh\u1ea3y v\u1ecdt ki\u1ebfn tr\u00fac c\u1ee7a NVIDIA JetPack 7.0 v\u00e0 t\u01b0\u01a1ng lai c\u1ee7a robot h\u00ecnh ng\u01b0\u1eddi<\/a><\/li>\n<li><a href=\"https:\/\/thegioimaychu.vn\/blog\/?post_type=post&#038;p=22887\">T\u1ea1i sao g\u1ecdi NVIDIA DGX Spark l\u00e0 Si\u00eau m\u00e1y t\u00ednh AI c\u00e1 nh\u00e2n?<\/a><\/li>\n<\/ul>\n<\/p>","protected":false},"excerpt":{"rendered":"<p>Pandas Pandas l&agrave; th&#432; vi&#7879;n ph&#7847;n m&#7873;m ph&#7893; bi&#7871;n nh&#7845;t &#273;&#7875; thao t&aacute;c v&agrave; ph&acirc;n t&iacute;ch d&#7919; li&#7879;u cho ng&ocirc;n ng&#7919; l&#7853;p tr&igrave;nh&nbsp;Python. Pandas l&agrave; g&igrave;? L&agrave; m&#7897;t th&#432; vi&#7879;n ph&#7847;n m&#7873;m m&atilde; ngu&#7891;n m&#7903; &#273;&#432;&#7907;c x&acirc;y d&#7921;ng d&#7921;a tr&ecirc;n Python d&agrave;nh ri&ecirc;ng cho thao t&aacute;c v&agrave; ph&acirc;n t&iacute;ch d&#7919; li&#7879;u, Pandas cung c&#7845;p c&#7845;u&#8230;<\/p>\n","protected":false},"author":29,"featured_media":17981,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[3],"tags":[12,29,1314,1175],"class_list":["post-17910","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-hpc","tag-deep-learning","tag-machine-learning","tag-nvidia","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python - Blog | TheGioiMayChu<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python - Blog | TheGioiMayChu\" \/>\n<meta name=\"twitter:description\" content=\"Pandas Pandas l&agrave; th&#432; vi&#7879;n ph&#7847;n m&#7873;m ph&#7893; bi&#7871;n nh&#7845;t &#273;&#7875; thao t&aacute;c v&agrave; ph&acirc;n t&iacute;ch d&#7919; li&#7879;u cho ng&ocirc;n ng&#7919; l&#7853;p tr&igrave;nh&nbsp;Python. Pandas l&agrave; g&igrave;? L&agrave; m&#7897;t th&#432; vi&#7879;n ph&#7847;n m&#7873;m m&atilde; ngu&#7891;n m&#7903; &#273;&#432;&#7907;c x&acirc;y d&#7921;ng d&#7921;a tr&ecirc;n Python d&agrave;nh ri&ecirc;ng cho thao t&aacute;c v&agrave; ph&acirc;n t&iacute;ch d&#7919; li&#7879;u, Pandas cung c&#7845;p c&#7845;u...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/TheGioiMayChu-Blog-Python-Pandas.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"TGMC Blog\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"15 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/\"},\"author\":{\"name\":\"TGMC Blog\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#\\\/schema\\\/person\\\/777f41403962330933a4fbcc80bec570\"},\"headline\":\"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python\",\"datePublished\":\"2023-10-09T01:03:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/\"},\"wordCount\":2941,\"publisher\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/TheGioiMayChu-Blog-Python-Pandas.jpg\",\"keywords\":[\"deep learning\",\"machine learning\",\"NVIDIA\",\"python\"],\"articleSection\":[\"AI - HPC\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/\",\"url\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/\",\"name\":\"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python - Blog | TheGioiMayChu\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/TheGioiMayChu-Blog-Python-Pandas.jpg\",\"datePublished\":\"2023-10-09T01:03:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#primaryimage\",\"url\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/TheGioiMayChu-Blog-Python-Pandas.jpg\",\"contentUrl\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/10\\\/TheGioiMayChu-Blog-Python-Pandas.jpg\",\"width\":1080,\"height\":675},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/ai-hpc\\\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Trang ch\u1ee7\",\"item\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI - HPC\",\"item\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/.\\\/ai-hpc\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/\",\"name\":\"Blog | TheGioiMayChu\",\"description\":\"C\u1eadp nh\u1eadt xu h\u01b0\u1edbng c\u00f4ng ngh\u1ec7 m\u00e1y ch\u1ee7\",\"publisher\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#organization\",\"name\":\"Blog | TheGioiMayChu\",\"url\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/cropped-ntcnlog-logo-2.png\",\"contentUrl\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/08\\\/cropped-ntcnlog-logo-2.png\",\"width\":500,\"height\":73,\"caption\":\"Blog | TheGioiMayChu\"},\"image\":{\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/thegioimaychu\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/#\\\/schema\\\/person\\\/777f41403962330933a4fbcc80bec570\",\"name\":\"TGMC Blog\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff179df3aeac078da5e07e40f2e014e99ab4120e2276b687bbe7e6964d99655e?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff179df3aeac078da5e07e40f2e014e99ab4120e2276b687bbe7e6964d99655e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ff179df3aeac078da5e07e40f2e014e99ab4120e2276b687bbe7e6964d99655e?s=96&d=mm&r=g\",\"caption\":\"TGMC Blog\"},\"url\":\"https:\\\/\\\/thegioimaychu.vn\\\/blog\\\/author\\\/tgmc\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python - Blog | TheGioiMayChu","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/","twitter_card":"summary_large_image","twitter_title":"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python - Blog | TheGioiMayChu","twitter_description":"Pandas Pandas l&agrave; th&#432; vi&#7879;n ph&#7847;n m&#7873;m ph&#7893; bi&#7871;n nh&#7845;t &#273;&#7875; thao t&aacute;c v&agrave; ph&acirc;n t&iacute;ch d&#7919; li&#7879;u cho ng&ocirc;n ng&#7919; l&#7853;p tr&igrave;nh&nbsp;Python. Pandas l&agrave; g&igrave;? L&agrave; m&#7897;t th&#432; vi&#7879;n ph&#7847;n m&#7873;m m&atilde; ngu&#7891;n m&#7903; &#273;&#432;&#7907;c x&acirc;y d&#7921;ng d&#7921;a tr&ecirc;n Python d&agrave;nh ri&ecirc;ng cho thao t&aacute;c v&agrave; ph&acirc;n t&iacute;ch d&#7919; li&#7879;u, Pandas cung c&#7845;p c&#7845;u...","twitter_image":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/TheGioiMayChu-Blog-Python-Pandas.jpg","twitter_misc":{"Written by":"TGMC Blog","Est. reading time":"15 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#article","isPartOf":{"@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/"},"author":{"name":"TGMC Blog","@id":"https:\/\/thegioimaychu.vn\/blog\/#\/schema\/person\/777f41403962330933a4fbcc80bec570"},"headline":"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python","datePublished":"2023-10-09T01:03:09+00:00","mainEntityOfPage":{"@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/"},"wordCount":2941,"publisher":{"@id":"https:\/\/thegioimaychu.vn\/blog\/#organization"},"image":{"@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#primaryimage"},"thumbnailUrl":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/TheGioiMayChu-Blog-Python-Pandas.jpg","keywords":["deep learning","machine learning","NVIDIA","python"],"articleSection":["AI - HPC"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/","url":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/","name":"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python - Blog | TheGioiMayChu","isPartOf":{"@id":"https:\/\/thegioimaychu.vn\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#primaryimage"},"image":{"@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#primaryimage"},"thumbnailUrl":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/TheGioiMayChu-Blog-Python-Pandas.jpg","datePublished":"2023-10-09T01:03:09+00:00","breadcrumb":{"@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#primaryimage","url":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/TheGioiMayChu-Blog-Python-Pandas.jpg","contentUrl":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2023\/10\/TheGioiMayChu-Blog-Python-Pandas.jpg","width":1080,"height":675},{"@type":"BreadcrumbList","@id":"https:\/\/thegioimaychu.vn\/blog\/ai-hpc\/xu-ly-du-lieu-voi-pandas-trong-python-p17910\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Trang ch\u1ee7","item":"https:\/\/thegioimaychu.vn\/blog\/"},{"@type":"ListItem","position":2,"name":"AI - HPC","item":"https:\/\/thegioimaychu.vn\/blog\/.\/ai-hpc\/"},{"@type":"ListItem","position":3,"name":"X\u1eed l\u00fd d\u1eef li\u1ec7u v\u1edbi Pandas trong Python"}]},{"@type":"WebSite","@id":"https:\/\/thegioimaychu.vn\/blog\/#website","url":"https:\/\/thegioimaychu.vn\/blog\/","name":"Blog | TheGioiMayChu","description":"C\u1eadp nh\u1eadt xu h\u01b0\u1edbng c\u00f4ng ngh\u1ec7 m\u00e1y ch\u1ee7","publisher":{"@id":"https:\/\/thegioimaychu.vn\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/thegioimaychu.vn\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/thegioimaychu.vn\/blog\/#organization","name":"Blog | TheGioiMayChu","url":"https:\/\/thegioimaychu.vn\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/thegioimaychu.vn\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2018\/08\/cropped-ntcnlog-logo-2.png","contentUrl":"https:\/\/thegioimaychu.vn\/blog\/wp-content\/uploads\/2018\/08\/cropped-ntcnlog-logo-2.png","width":500,"height":73,"caption":"Blog | TheGioiMayChu"},"image":{"@id":"https:\/\/thegioimaychu.vn\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/thegioimaychu\/"]},{"@type":"Person","@id":"https:\/\/thegioimaychu.vn\/blog\/#\/schema\/person\/777f41403962330933a4fbcc80bec570","name":"TGMC Blog","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ff179df3aeac078da5e07e40f2e014e99ab4120e2276b687bbe7e6964d99655e?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ff179df3aeac078da5e07e40f2e014e99ab4120e2276b687bbe7e6964d99655e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ff179df3aeac078da5e07e40f2e014e99ab4120e2276b687bbe7e6964d99655e?s=96&d=mm&r=g","caption":"TGMC Blog"},"url":"https:\/\/thegioimaychu.vn\/blog\/author\/tgmc\/"}]}},"_links":{"self":[{"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/posts\/17910","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/comments?post=17910"}],"version-history":[{"count":6,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/posts\/17910\/revisions"}],"predecessor-version":[{"id":17974,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/posts\/17910\/revisions\/17974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/media\/17981"}],"wp:attachment":[{"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/media?parent=17910"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/categories?post=17910"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thegioimaychu.vn\/blog\/wp-json\/wp\/v2\/tags?post=17910"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}