{"id":26960,"date":"2025-04-14T10:10:16","date_gmt":"2025-04-14T03:10:16","guid":{"rendered":"https:\/\/interdata.vn\/blog\/?p=26960"},"modified":"2025-04-14T10:10:46","modified_gmt":"2025-04-14T03:10:46","slug":"seaborn-la-gi","status":"publish","type":"post","link":"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/","title":{"rendered":"Seaborn l\u00e0 g\u00ec? C\u00e1c h\u00e0m v\u1ebd bi\u1ec3u \u0111\u1ed3 trong Seaborn (Python)"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-white ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">N\u1ed8I DUNG<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#Seaborn-la-gi\" >Seaborn l\u00e0 g\u00ec?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#Tinh-nang-chinh-cua-Seaborn\" >T\u00ednh n\u0103ng ch\u00ednh c\u1ee7a Seaborn<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#Uu-diem-va-nhuoc-diem-cua-Seaborn\" >\u01afu \u0111i\u1ec3m v\u00e0 nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a Seaborn<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#Cac-ham-ve-bieu-do-trong-Seaborn-Python\" >C\u00e1c h\u00e0m v\u1ebd bi\u1ec3u \u0111\u1ed3 trong Seaborn (Python)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#1-Barplot-Bieu-do-cot\" >1. Barplot (Bi\u1ec3u \u0111\u1ed3 c\u1ed9t)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#2-Countplot-Bieu-do-tan-suat\" >2. Countplot (Bi\u1ec3u \u0111\u1ed3 t\u1ea7n su\u1ea5t)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#3-Boxplot-Bieu-do-hop\" >3. Boxplot (Bi\u1ec3u \u0111\u1ed3 h\u1ed9p)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#4-Violin-Plot-Bieu-do-violin\" >4. Violin Plot (Bi\u1ec3u \u0111\u1ed3 violin)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#5-Strip-Plot-Bieu-do-diem-roi-rac\" >5. Strip Plot (Bi\u1ec3u \u0111\u1ed3 \u0111i\u1ec3m r\u1eddi r\u1ea1c)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#6-Swarm-Plot-Bieu-do-bay-diem\" >6. Swarm Plot (Bi\u1ec3u \u0111\u1ed3 b\u1ea7y \u0111i\u1ec3m)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#7-Factorplot-Bieu-do-tong-hop-theo-loai\" >7. Factorplot (Bi\u1ec3u \u0111\u1ed3 t\u1ed5ng h\u1ee3p theo lo\u1ea1i)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/#So-sanh-Seaborn-va-Matplotlib\" >So s\u00e1nh Seaborn v\u00e0 Matplotlib<\/a><\/li><\/ul><\/nav><\/div>\n<p>Seaborn l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python m\u1ea1nh m\u1ebd v\u00e0 d\u1ec5 s\u1eed d\u1ee5ng, \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n t\u1ea3ng Matplotlib, gi\u00fap vi\u1ec7c tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u tr\u1edf n\u00ean \u0111\u01a1n gi\u1ea3n v\u00e0 tr\u1ef1c quan h\u01a1n. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd gi\u1edbi thi\u1ec7u chi ti\u1ebft <a href=\"https:\/\/interdata.vn\/blog\/seaborn-la-gi\/\"><strong>Seaborn l\u00e0 g\u00ec<\/strong><\/a>, c\u00e1c t\u00ednh n\u0103ng n\u1ed5i b\u1eadt, c\u00e1c h\u00e0m v\u1ebd bi\u1ec3u \u0111\u1ed3 trong Seaborn v\u00e0 so s\u00e1nh Seaborn v\u1edbi Matplotlib \u0111\u1ec3 b\u1ea1n c\u00f3 th\u1ec3 l\u1ef1a ch\u1ecdn c\u00f4ng c\u1ee5 ph\u00f9 h\u1ee3p cho c\u00f4ng vi\u1ec7c c\u1ee7a m\u00ecnh. \u0110\u1ecdc ngay nh\u00e9!<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Seaborn-la-gi\"><\/span><strong>Seaborn l\u00e0 g\u00ec?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>Seaborn l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python n\u1ed5i ti\u1ebfng d\u00e0nh cho tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u, \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n t\u1ea3ng c\u1ee7a Matplotlib<\/strong>. Th\u01b0 vi\u1ec7n n\u00e0y cung c\u1ea5p m\u1ed9t giao di\u1ec7n th\u00e2n thi\u1ec7n v\u1edbi ng\u01b0\u1eddi d\u00f9ng, gi\u00fap t\u1ea1o ra c\u00e1c bi\u1ec3u \u0111\u1ed3 th\u1ed1ng k\u00ea \u0111\u1eb9p m\u1eaft v\u00e0 d\u1ec5 hi\u1ec3u. Seaborn \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf \u0111\u1ec3 l\u00e0m vi\u1ec7c m\u01b0\u1ee3t m\u00e0 v\u1edbi c\u00e1c DataFrame c\u1ee7a Pandas, nh\u1edd \u0111\u00f3 ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 tr\u1ef1c quan h\u00f3a v\u00e0 kh\u00e1m ph\u00e1 d\u1eef li\u1ec7u m\u1ed9t c\u00e1ch nhanh ch\u00f3ng v\u00e0 hi\u1ec7u qu\u1ea3.<\/p>\n<p>Seaborn cung c\u1ea5p nhi\u1ec1u c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd \u0111\u1ec3 tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u nh\u01b0 bi\u1ec3u \u0111\u1ed3 ph\u00e2n t\u00e1n, bi\u1ec3u \u0111\u1ed3 \u0111\u01b0\u1eddng, bi\u1ec3u \u0111\u1ed3 c\u1ed9t, b\u1ea3n \u0111\u1ed3 nhi\u1ec7t v\u00e0 nhi\u1ec1u lo\u1ea1i bi\u1ec3u \u0111\u1ed3 kh\u00e1c. Th\u01b0 vi\u1ec7n c\u0169ng h\u1ed7 tr\u1ee3 c\u00e1c ph\u00e2n t\u00edch th\u1ed1ng k\u00ea n\u00e2ng cao nh\u01b0 h\u1ed3i quy tuy\u1ebfn t\u00ednh, bi\u1ec3u \u0111\u1ed3 ph\u00e2n ph\u1ed1i v\u00e0 bi\u1ec3u \u0111\u1ed3 theo nh\u00f3m danh m\u1ee5c.<\/p>\n<figure id=\"attachment_26972\" aria-describedby=\"caption-attachment-26972\" style=\"width: 825px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Seaborn-la-gi.jpg\" alt=\"Seaborn l\u00e0 g\u00ec?\" width=\"825\" height=\"718\" class=\"size-full wp-image-26972\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Seaborn-la-gi.jpg 825w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Seaborn-la-gi-300x261.jpg 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Seaborn-la-gi-768x668.jpg 768w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Seaborn-la-gi-750x653.jpg 750w\" sizes=\"auto, (max-width: 825px) 100vw, 825px\" \/><figcaption id=\"caption-attachment-26972\" class=\"wp-caption-text\">Seaborn l\u00e0 g\u00ec?<\/figcaption><\/figure>\n<p>\u0110i\u1ec3m m\u1ea1nh n\u1ed5i b\u1eadt c\u1ee7a Seaborn l\u00e0 kh\u1ea3 n\u0103ng <strong>t\u1ea1o ra c\u00e1c bi\u1ec3u \u0111\u1ed3 h\u1ea5p d\u1eabn<\/strong> ch\u1ec9 v\u1edbi m\u1ed9t l\u01b0\u1ee3ng m\u00e3 t\u1ed1i thi\u1ec3u. N\u00f3 \u0111i k\u00e8m v\u1edbi c\u00e1c ch\u1ee7 \u0111\u1ec1 v\u00e0 b\u1ea3ng m\u00e0u m\u1eb7c \u0111\u1ecbnh d\u1ec5 t\u00f9y ch\u1ec9nh theo s\u1edf th\u00edch ng\u01b0\u1eddi d\u00f9ng.<\/p>\n<p>Ngo\u00e0i ra, th\u01b0 vi\u1ec7n Seaborn t\u00edch h\u1ee3p s\u1eb5n m\u1ed9t s\u1ed1 h\u00e0m th\u1ed1ng k\u00ea gi\u00fap ng\u01b0\u1eddi d\u00f9ng d\u1ec5 d\u00e0ng th\u1ef1c hi\u1ec7n c\u00e1c ph\u00e2n t\u00edch ph\u1ee9c t\u1ea1p ngay trong qu\u00e1 tr\u00ecnh tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u.<\/p>\n<p>M\u1ed9t t\u00ednh n\u0103ng \u0111\u00e1ng ch\u00fa \u00fd kh\u00e1c c\u1ee7a Seaborn l\u00e0 kh\u1ea3 n\u0103ng <strong>t\u1ea1o ra c\u00e1c bi\u1ec3u \u0111\u1ed3 ph\u1ee9c h\u1ee3p (multi-plot)<\/strong> tr\u00ean c\u00f9ng m\u1ed9t khung h\u00ecnh. Ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 t\u1ea1o ra l\u01b0\u1edbi bi\u1ec3u \u0111\u1ed3 \u0111\u1ec3 so s\u00e1nh c\u00e1c bi\u1ebfn ho\u1eb7c c\u00e1c t\u1eadp con d\u1eef li\u1ec7u kh\u00e1c nhau m\u1ed9t c\u00e1ch tr\u1ef1c quan. \u0110\u00e2y l\u00e0 c\u00f4ng c\u1ee5 l\u00fd t\u01b0\u1edfng cho qu\u00e1 tr\u00ecnh ph\u00e2n t\u00edch d\u1eef li\u1ec7u th\u0103m d\u00f2 (exploratory data analysis) v\u00e0 tr\u00ecnh b\u00e0y k\u1ebft qu\u1ea3.<\/p>\n<p>T\u00f3m l\u1ea1i, Seaborn l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u m\u1ea1nh m\u1ebd v\u00e0 linh ho\u1ea1t trong Python, v\u1edbi giao di\u1ec7n d\u1ec5 s\u1eed d\u1ee5ng, h\u1ed7 tr\u1ee3 ph\u00e2n t\u00edch th\u1ed1ng k\u00ea n\u00e2ng cao v\u00e0 kh\u1ea3 n\u0103ng t\u1ea1o bi\u1ec3u \u0111\u1ed3 tr\u1ef1c quan \u0111\u1eb9p m\u1eaft, hi\u1ec7u qu\u1ea3.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Tinh-nang-chinh-cua-Seaborn\"><\/span><strong>T\u00ednh n\u0103ng ch\u00ednh c\u1ee7a Seaborn<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>X\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n t\u1ea3ng Matplotlib: <\/strong>Seaborn \u0111\u01b0\u1ee3c ph\u00e1t tri\u1ec3n d\u1ef1a tr\u00ean Matplotlib, k\u1ebf th\u1eeba to\u00e0n b\u1ed9 s\u1ee9c m\u1ea1nh t\u1eeb th\u01b0 vi\u1ec7n g\u1ed1c nh\u01b0ng cung c\u1ea5p giao di\u1ec7n c\u1ea5p cao h\u01a1n, gi\u00fap \u0111\u01a1n gi\u1ea3n h\u00f3a vi\u1ec7c t\u1ea1o bi\u1ec3u \u0111\u1ed3 th\u1ed1ng k\u00ea.<\/p>\n<p><strong>T\u00edch h\u1ee3p m\u01b0\u1ee3t m\u00e0 v\u1edbi Pandas v\u00e0 NumPy: <\/strong>Th\u01b0 vi\u1ec7n Seaborn ho\u1ea1t \u0111\u1ed9ng r\u1ea5t t\u1ed1t v\u1edbi DataFrame c\u1ee7a Pandas v\u00e0 m\u1ea3ng NumPy, cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng thao t\u00e1c v\u00e0 tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u tr\u1ef1c ti\u1ebfp m\u00e0 kh\u00f4ng c\u1ea7n chuy\u1ec3n \u0111\u1ed5i \u0111\u1ecbnh d\u1ea1ng.<\/p>\n<p><strong>H\u1ed7 tr\u1ee3 bi\u1ec3u \u0111\u1ed3 th\u1ed1ng k\u00ea \u0111a d\u1ea1ng: <\/strong>Cung c\u1ea5p nhi\u1ec1u lo\u1ea1i bi\u1ec3u \u0111\u1ed3 nh\u01b0:<\/p>\n<ul>\n<li>Bi\u1ec3u \u0111\u1ed3 ph\u00e2n t\u00e1n (scatter plot)<\/li>\n<li>Bi\u1ec3u \u0111\u1ed3 \u0111\u01b0\u1eddng (line plot)<\/li>\n<li>Bi\u1ec3u \u0111\u1ed3 c\u1ed9t (bar plot)<\/li>\n<li>Bi\u1ec3u \u0111\u1ed3 ph\u00e2n ph\u1ed1i (distribution plot)<\/li>\n<li>B\u1ea3n \u0111\u1ed3 nhi\u1ec7t (heatmap)<\/li>\n<li>Bi\u1ec3u \u0111\u1ed3 h\u1ed9p (boxplot), violin plot, catplot,&#8230;<\/li>\n<\/ul>\n<p>Ph\u00f9 h\u1ee3p cho ph\u00e2n t\u00edch d\u1eef li\u1ec7u th\u0103m d\u00f2 (EDA) v\u00e0 tr\u00ecnh b\u00e0y th\u1ed1ng k\u00ea.<\/p>\n<figure id=\"attachment_26973\" aria-describedby=\"caption-attachment-26973\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Tinh-nang-chinh-cua-Seaborn.jpg\" alt=\"T\u00ednh n\u0103ng ch\u00ednh c\u1ee7a Seaborn\" width=\"800\" height=\"449\" class=\"size-full wp-image-26973\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Tinh-nang-chinh-cua-Seaborn.jpg 800w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Tinh-nang-chinh-cua-Seaborn-300x168.jpg 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Tinh-nang-chinh-cua-Seaborn-768x431.jpg 768w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Tinh-nang-chinh-cua-Seaborn-750x421.jpg 750w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption id=\"caption-attachment-26973\" class=\"wp-caption-text\">T\u00ednh n\u0103ng ch\u00ednh c\u1ee7a Seaborn<\/figcaption><\/figure>\n<p><strong>T\u00edch h\u1ee3p c\u00e1c h\u00e0m ph\u00e2n t\u00edch th\u1ed1ng k\u00ea: <\/strong>Seaborn c\u00f3 s\u1eb5n nhi\u1ec1u h\u00e0m ph\u1ee5c v\u1ee5 ph\u00e2n t\u00edch h\u1ed3i quy tuy\u1ebfn t\u00ednh, so s\u00e1nh ph\u00e2n ph\u1ed1i d\u1eef li\u1ec7u, ki\u1ec3m tra s\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa c\u00e1c nh\u00f3m danh m\u1ee5c,&#8230; m\u00e0 kh\u00f4ng c\u1ea7n vi\u1ebft nhi\u1ec1u d\u00f2ng l\u1ec7nh x\u1eed l\u00fd ph\u1ee9c t\u1ea1p.<\/p>\n<p><strong>T\u00f9y ch\u1ec9nh giao di\u1ec7n d\u1ec5 d\u00e0ng: <\/strong>Cung c\u1ea5p nhi\u1ec1u <strong>ch\u1ee7 \u0111\u1ec1 (themes)<\/strong> v\u00e0 <strong>b\u1ea3ng m\u00e0u (color palettes)<\/strong> m\u1eb7c \u0111\u1ecbnh \u0111\u1eb9p m\u1eaft, chuy\u00ean nghi\u1ec7p, c\u00f3 th\u1ec3 d\u1ec5 d\u00e0ng t\u00f9y ch\u1ec9nh theo nhu c\u1ea7u. \u0110i\u1ec1u n\u00e0y gi\u00fap t\u0103ng t\u00ednh th\u1ea9m m\u1ef9 cho bi\u1ec3u \u0111\u1ed3 m\u00e0 kh\u00f4ng t\u1ed1n nhi\u1ec1u c\u00f4ng s\u1ee9c.<\/p>\n<p><strong>H\u1ed7 tr\u1ee3 t\u1ea1o bi\u1ec3u \u0111\u1ed3 nhi\u1ec1u ph\u1ea7n (multi-plot): <\/strong>V\u1edbi c\u00e1c c\u00f4ng c\u1ee5 nh\u01b0 <code>FacetGrid<\/code>, <code>PairPlot<\/code> ho\u1eb7c <code>JointPlot<\/code>, ng\u01b0\u1eddi d\u00f9ng c\u00f3 th\u1ec3 t\u1ea1o l\u01b0\u1edbi bi\u1ec3u \u0111\u1ed3 \u0111\u1ec3 so s\u00e1nh nhi\u1ec1u bi\u1ebfn ho\u1eb7c nh\u00f3m d\u1eef li\u1ec7u kh\u00e1c nhau m\u1ed9t c\u00e1ch tr\u1ef1c quan.<\/p>\n<p><strong>T\u1ef1 \u0111\u1ed9ng h\u00f3a nhi\u1ec1u t\u00e1c v\u1ee5 tr\u1ef1c quan h\u00f3a: <\/strong>Seaborn gi\u00fap t\u1ef1 \u0111\u1ed9ng x\u1eed l\u00fd c\u00e1c b\u01b0\u1edbc nh\u01b0 ph\u00e2n nh\u00f3m d\u1eef li\u1ec7u, th\u00eam nh\u00e3n, t\u00ednh to\u00e1n trung b\u00ecnh \u2013 gi\u00fap gi\u1ea3m thi\u1ec3u m\u00e3 ngu\u1ed3n c\u1ea7n vi\u1ebft, ph\u00f9 h\u1ee3p v\u1edbi c\u1ea3 ng\u01b0\u1eddi m\u1edbi b\u1eaft \u0111\u1ea7u.<\/p>\n<p><strong>T\u01b0\u01a1ng th\u00edch ng\u01b0\u1ee3c v\u1edbi Matplotlib: <\/strong>D\u00f9 s\u1eed d\u1ee5ng Seaborn, ng\u01b0\u1eddi d\u00f9ng v\u1eabn c\u00f3 th\u1ec3 truy c\u1eadp v\u00e0 s\u1eed d\u1ee5ng c\u00e1c ch\u1ee9c n\u0103ng c\u1ee7a Matplotlib \u0111\u1ec3 t\u00f9y ch\u1ec9nh bi\u1ec3u \u0111\u1ed3 n\u00e2ng cao n\u1ebfu c\u1ea7n.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Uu-diem-va-nhuoc-diem-cua-Seaborn\"><\/span><strong>\u01afu \u0111i\u1ec3m v\u00e0 nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a Seaborn<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><strong>\u01afu \u0111i\u1ec3m c\u1ee7a Seaborn l\u00e0 g\u00ec?<\/strong><\/p>\n<ul>\n<li>D\u1ec5 d\u00e0ng x\u1eed l\u00fd v\u00e0 qu\u1ea3n l\u00fd d\u1eef li\u1ec7u c\u00f3 c\u1ea5u tr\u00fac.<\/li>\n<li>Tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u nhanh ch\u00f3ng m\u00e0 kh\u00f4ng c\u1ea7n quan t\u00e2m \u0111\u1ebfn c\u00e1c chi ti\u1ebft n\u1ed9i b\u1ed9 ph\u1ee9c t\u1ea1p.<\/li>\n<li>C\u00f3 th\u1ec3 thay \u0111\u1ed5i c\u00e1ch bi\u1ec3u di\u1ec5n d\u1eef li\u1ec7u b\u1eb1ng c\u00e1ch thay \u0111\u1ed5i tham s\u1ed1 <code>type<\/code> trong h\u00e0m <code>relplot()<\/code>.<\/li>\n<li>H\u1ed7 tr\u1ee3 t\u1ed1t cho vi\u1ec7c h\u1ecdc t\u1eadp v\u00e0 tr\u00ecnh b\u00e0y d\u1eef li\u1ec7u theo c\u00e1ch tr\u1ef1c quan, d\u1ec5 hi\u1ec3u cho ng\u01b0\u1eddi d\u00f9ng cu\u1ed1i.<\/li>\n<li>T\u01b0\u01a1ng th\u00edch t\u1ed1t v\u1edbi Matplotlib v\u00e0 khi c\u00e0i Seaborn, c\u00e1c th\u01b0 vi\u1ec7n li\u00ean quan nh\u01b0 Matplotlib c\u0169ng \u0111\u01b0\u1ee3c c\u00e0i \u0111\u1eb7t k\u00e8m.<\/li>\n<\/ul>\n<p><strong>Nh\u01b0\u1ee3c \u0111i\u1ec3m c\u1ee7a Seaborn l\u00e0 g\u00ec?<\/strong><\/p>\n<ul>\n<li>Seaborn kh\u00f4ng \u0111\u01b0\u1ee3c t\u00edch h\u1ee3p s\u1eb5n trong Python, n\u00ean c\u1ea7n c\u00e0i \u0111\u1eb7t th\u1ee7 c\u00f4ng tr\u01b0\u1edbc khi s\u1eed d\u1ee5ng.<\/li>\n<li>Ngo\u00e0i b\u01b0\u1edbc c\u00e0i \u0111\u1eb7t, kh\u00f4ng c\u00f3 h\u1ea1n ch\u1ebf nghi\u00eam tr\u1ecdng n\u00e0o kh\u00e1c. Vi\u1ec7c c\u00e0i \u0111\u1eb7t n\u00e0y ch\u1ec9 l\u00e0 m\u1ed9t b\u01b0\u1edbc b\u1ed5 sung c\u1ea7n thi\u1ebft trong qu\u00e1 tr\u00ecnh l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Cac-ham-ve-bieu-do-trong-Seaborn-Python\"><\/span><strong>C\u00e1c h\u00e0m v\u1ebd bi\u1ec3u \u0111\u1ed3 trong Seaborn (Python)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Th\u01b0 vi\u1ec7n Seaborn cung c\u1ea5p nhi\u1ec1u c\u00f4ng c\u1ee5 v\u1ebd bi\u1ec3u \u0111\u1ed3, gi\u00fap vi\u1ec7c quan s\u00e1t v\u00e0 di\u1ec5n gi\u1ea3i d\u1eef li\u1ec7u tr\u1edf n\u00ean \u0111\u01a1n gi\u1ea3n h\u01a1n. Trong ph\u1ea7n n\u00e0y, ch\u00fang ta s\u1ebd t\u00ecm hi\u1ec3u m\u1ed9t s\u1ed1 lo\u1ea1i bi\u1ec3u \u0111\u1ed3 quan tr\u1ecdng trong Seaborn.<\/p>\n<p>H\u00e3y c\u00f9ng kh\u00e1m ph\u00e1 c\u00e1ch tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u ph\u00e2n lo\u1ea1i (categorical data) b\u1eb1ng Seaborn! C\u00f3 m\u1ed9t s\u1ed1 lo\u1ea1i bi\u1ec3u \u0111\u1ed3 ch\u00ednh \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng cho m\u1ee5c \u0111\u00edch n\u00e0y.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"1-Barplot-Bieu-do-cot\"><\/span><strong>1. Barplot (Bi\u1ec3u \u0111\u1ed3 c\u1ed9t)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Bi\u1ec3u \u0111\u1ed3 c\u1ed9t trong Seaborn ch\u1ee7 y\u1ebfu \u0111\u01b0\u1ee3c s\u1eed d\u1ee5ng \u0111\u1ec3 t\u1ed5ng h\u1ee3p d\u1eef li\u1ec7u ph\u00e2n lo\u1ea1i theo m\u1ed9t ph\u01b0\u01a1ng ph\u00e1p nh\u1ea5t \u0111\u1ecbnh, ph\u1ed5 bi\u1ebfn l\u00e0 gi\u00e1 tr\u1ecb trung b\u00ecnh (mean), tuy nhi\u00ean b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 d\u00f9ng c\u00e1c ph\u00e9p t\u00ednh kh\u00e1c. Bi\u1ec3u \u0111\u1ed3 n\u00e0y c\u00f3 th\u1ec3 \u0111\u01b0\u1ee3c hi\u1ec3u nh\u01b0 m\u1ed9t bi\u1ec3u di\u1ec5n c\u1ee7a c\u00e1c nh\u00f3m d\u1ef1a tr\u00ean h\u00e0nh vi c\u1ee7a ch\u00fang.<\/p>\n<p>\u0110\u1ec3 t\u1ea1o bi\u1ec3u \u0111\u1ed3 c\u1ed9t, b\u1ea1n ch\u1ecdn m\u1ed9t c\u1ed9t d\u1ea1ng s\u1ed1 cho tr\u1ee5c y v\u00e0 m\u1ed9t c\u1ed9t ph\u00e2n lo\u1ea1i cho tr\u1ee5c x. Bi\u1ec3u \u0111\u1ed3 s\u1ebd hi\u1ec3n th\u1ecb gi\u00e1 tr\u1ecb trung b\u00ecnh (ho\u1eb7c gi\u00e1 tr\u1ecb \u0111\u01b0\u1ee3c ch\u1ec9 \u0111\u1ecbnh) cho m\u1ed7i nh\u00f3m ph\u00e2n lo\u1ea1i.<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre><strong>barplot([x, y, hue, data, order, hue_order, ...])<\/strong><\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><\/p>\n<p>Python3<\/p>\n<pre># set the background style of the plot\r\nsns.set_style('darkgrid')\r\n\r\n# plot the graph using the default estimator mean\r\nsns.barplot(x ='sex', y ='total_bill', data = df, palette ='plasma')\r\n\r\n# or\r\nimport numpy as np\r\n\r\n# change the estimator from mean to standard deviation\r\nsns.barplot(x ='sex', y ='total_bill', data = df,\r\npalette ='plasma', estimator = np.std)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Output.webp\" alt=\"Output\" width=\"384\" height=\"253\" class=\"aligncenter wp-image-26961 size-full\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Output.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Output-300x198.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><strong>Gi\u1ea3i th\u00edch:<\/strong><\/p>\n<p>Bi\u1ec3u \u0111\u1ed3 cho th\u1ea5y h\u00f3a \u0111\u01a1n trung b\u00ecnh c\u1ee7a nam cao h\u01a1n n\u1eef. \u0110i\u1ec1u n\u00e0y gi\u00fap r\u00fat ra nh\u1eadn \u0111\u1ecbnh v\u1ec1 s\u1ef1 kh\u00e1c bi\u1ec7t gi\u1eefa c\u00e1c nh\u00f3m gi\u1edbi t\u00ednh. <code>palette<\/code> d\u00f9ng \u0111\u1ec3 x\u00e1c \u0111\u1ecbnh b\u1ea3ng m\u00e0u c\u1ee7a bi\u1ec3u \u0111\u1ed3, c\u00f2n <code>estimator<\/code> l\u00e0 h\u00e0m th\u1ed1ng k\u00ea d\u00f9ng \u0111\u1ec3 t\u00ednh to\u00e1n gi\u00e1 tr\u1ecb cho t\u1eebng nh\u00f3m.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"2-Countplot-Bieu-do-tan-suat\"><\/span><strong>2. Countplot (Bi\u1ec3u \u0111\u1ed3 t\u1ea7n su\u1ea5t)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Bi\u1ec3u \u0111\u1ed3 t\u1ea7n su\u1ea5t (count plot) trong Seaborn \u0111\u1ebfm s\u1ed1 l\u1ea7n xu\u1ea5t hi\u1ec7n c\u1ee7a t\u1eebng h\u1ea1ng m\u1ee5c trong m\u1ed9t c\u1ed9t ph\u00e2n lo\u1ea1i v\u00e0 hi\u1ec3n th\u1ecb k\u1ebft qu\u1ea3. \u0110\u00e2y l\u00e0 m\u1ed9t trong nh\u1eefng bi\u1ec3u \u0111\u1ed3 \u0111\u01a1n gi\u1ea3n nh\u1ea5t trong Seaborn.<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre>countplot([x, y, hue, data, order, \u2026])\r\n<strong><\/strong><\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><\/p>\n<p>Python3<\/p>\n<pre>sns.countplot(x='sex', data=df)\r\n<strong><\/strong><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Bieu-do-dem.webp\" alt=\" Bi\u1ec3u \u0111\u1ed3 \u0111\u1ebfm \" width=\"384\" height=\"253\" class=\"aligncenter size-full wp-image-26962\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Bieu-do-dem.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Bieu-do-dem-300x198.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><strong>Gi\u1ea3i th\u00edch:<\/strong><\/p>\n<p>Bi\u1ec3u \u0111\u1ed3 cho th\u1ea5y s\u1ed1 l\u01b0\u1ee3ng nam trong d\u1eef li\u1ec7u l\u1edbn h\u01a1n n\u1eef. B\u1ea1n ch\u1ec9 c\u1ea7n cung c\u1ea5p t\u00ean c\u1ed9t ph\u00e2n lo\u1ea1i th\u00f4ng qua tham s\u1ed1 <code>x<\/code> l\u00e0 c\u00f3 th\u1ec3 t\u1ea1o bi\u1ec3u \u0111\u1ed3.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"3-Boxplot-Bieu-do-hop\"><\/span><strong>3. Boxplot (Bi\u1ec3u \u0111\u1ed3 h\u1ed9p)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Boxplot (c\u00f2n g\u1ecdi l\u00e0 bi\u1ec3u \u0111\u1ed3 h\u1ed9p v\u00e0 r\u00e2u) l\u00e0 bi\u1ec3u \u0111\u1ed3 m\u00f4 t\u1ea3 ph\u00e2n ph\u1ed1i d\u1eef li\u1ec7u s\u1ed1, \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 so s\u00e1nh gi\u1eefa c\u00e1c nh\u00f3m. Ph\u1ea7n h\u1ed9p th\u1ec3 hi\u1ec7n 40% d\u1eef li\u1ec7u n\u1eb1m gi\u1eefa t\u1ee9 ph\u00e2n v\u1ecb th\u1ee9 nh\u1ea5t v\u00e0 th\u1ee9 ba, c\u00f2n &#8220;r\u00e2u&#8221; th\u1ec3 hi\u1ec7n c\u00e1c gi\u00e1 tr\u1ecb ngo\u1ea1i vi.<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre>boxplot([x, y, hue, data, order, hue_order, ...])<\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><\/p>\n<p>Python3<\/p>\n<pre>sns.boxplot(x='day', y='total_bill', data=df, hue='smoker')\r\n<strong><\/strong><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Bieu-do-hop.webp\" alt=\"Bi\u1ec3u \u0111\u1ed3 h\u1ed9p \" width=\"384\" height=\"256\" class=\"aligncenter size-full wp-image-26963\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Bieu-do-hop.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Bieu-do-hop-300x200.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><strong>Gi\u1ea3i th\u00edch:<\/strong><\/p>\n<p>C\u1ed9t <code>x<\/code> l\u00e0 c\u1ed9t ph\u00e2n lo\u1ea1i, <code>y<\/code> l\u00e0 c\u1ed9t s\u1ed1 li\u1ec7u. <code>hue<\/code> cho ph\u00e9p ph\u00e2n bi\u1ec7t d\u1eef li\u1ec7u theo m\u1ed9t nh\u00f3m ph\u1ee5 kh\u00e1c. Bi\u1ec3u \u0111\u1ed3 cho th\u1ea5y ng\u01b0\u1eddi kh\u00f4ng h\u00fat thu\u1ed1c th\u01b0\u1eddng c\u00f3 h\u00f3a \u0111\u01a1n cao h\u01a1n v\u00e0o th\u1ee9 S\u00e1u so v\u1edbi ng\u01b0\u1eddi h\u00fat thu\u1ed1c.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"4-Violin-Plot-Bieu-do-violin\"><\/span><strong>4. Violin Plot (Bi\u1ec3u \u0111\u1ed3 violin)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Violin plot t\u01b0\u01a1ng t\u1ef1 boxplot nh\u01b0ng c\u00f3 kh\u1ea3 n\u0103ng th\u1ec3 hi\u1ec7n tr\u1ef1c quan chi ti\u1ebft h\u01a1n nh\u1edd s\u1eed d\u1ee5ng ph\u01b0\u01a1ng ph\u00e1p \u01b0\u1edbc l\u01b0\u1ee3ng m\u1eadt \u0111\u1ed9 (kernel density estimation).<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre>violinplot([x, y, hue, data, order, ...])<\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><\/p>\n<p>Python3<\/p>\n<pre>sns.violinplot(x='day', y='total_bill', data=df, hue='sex', split=True)\r\n<strong><\/strong><\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Violin-plot.webp\" alt=\"Violin plot \" width=\"384\" height=\"255\" class=\"aligncenter size-full wp-image-26964\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Violin-plot.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Violin-plot-300x199.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><strong>Gi\u1ea3i th\u00edch:<\/strong><\/p>\n<p>Tham s\u1ed1 <code>split=True<\/code> gi\u00fap bi\u1ec3u \u0111\u1ed3 chia \u0111\u00f4i m\u1ed7i &#8220;violin&#8221; theo t\u1eebng gi\u00e1 tr\u1ecb trong <code>hue<\/code>. \u0110i\u1ec1u n\u00e0y gi\u00fap so s\u00e1nh tr\u1ef1c ti\u1ebfp gi\u1eefa hai nh\u00f3m d\u1ec5 d\u00e0ng h\u01a1n.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"5-Strip-Plot-Bieu-do-diem-roi-rac\"><\/span><strong>5. Strip Plot (Bi\u1ec3u \u0111\u1ed3 \u0111i\u1ec3m r\u1eddi r\u1ea1c)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Strip plot t\u1ea1o bi\u1ec3u \u0111\u1ed3 ph\u00e2n t\u00e1n \u0111\u01a1n gi\u1ea3n (scatter plot) d\u1ef1a tr\u00ean c\u00e1c gi\u00e1 tr\u1ecb ph\u00e2n lo\u1ea1i.<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre>stripplot([x, y, hue, data, order, ...])<\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><strong><\/strong><\/p>\n<p>Python3<\/p>\n<pre>sns.stripplot(x ='day', y ='total_bill', data = df,\r\n\r\njitter = True, hue ='smoker', dodge = True)<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Strip-Plot.webp\" alt=\"Strip Plot\" width=\"384\" height=\"255\" class=\"aligncenter wp-image-26965 size-full\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Strip-Plot.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Strip-Plot-300x199.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><strong>Gi\u1ea3i th\u00edch:<\/strong><\/p>\n<p>Ch\u00fang ta s\u1eed d\u1ee5ng tham s\u1ed1 jitter \u0111\u1ec3 th\u00eam m\u1ed9t ch\u00fat ng\u1eabu nhi\u00ean v\u00e0o v\u1ecb tr\u00ed c\u00e1c \u0111i\u1ec3m d\u1eef li\u1ec7u, v\u00ec trong bi\u1ec3u \u0111\u1ed3 strip plot, c\u00e1c \u0111i\u1ec3m th\u01b0\u1eddng ch\u1ed3ng l\u00ean nhau v\u00e0 r\u1ea5t kh\u00f3 quan s\u00e1t. Khi c\u00f3 nhi\u1ec1u \u0111i\u1ec3m tr\u00f9ng v\u1ecb tr\u00ed, tham s\u1ed1 jitter s\u1ebd th\u00eam \u0111\u1ed9 l\u1ec7ch nh\u1eb9 (ch\u1ec9 theo tr\u1ee5c ph\u00e2n lo\u1ea1i) nh\u1eb1m l\u00e0m r\u00f5 s\u1ef1 ph\u00e2n b\u1ed1 d\u1eef li\u1ec7u. \u0110i\u1ec1u n\u00e0y gi\u00fap bi\u1ec3u \u0111\u1ed3 d\u1ec5 \u0111\u1ecdc v\u00e0 d\u1ec5 ph\u00e2n t\u00edch h\u01a1n.<\/p>\n<p>Tham s\u1ed1 hue \u0111\u01b0\u1ee3c d\u00f9ng \u0111\u1ec3 t\u00e1ch bi\u1ec7t c\u00e1c nh\u00f3m d\u1eef li\u1ec7u theo m\u1ed9t ti\u00eau ch\u00ed ph\u00e2n lo\u1ea1i ph\u1ee5, gi\u00fap bi\u1ec3u \u0111\u1ed3 th\u1ec3 hi\u1ec7n nhi\u1ec1u kh\u00eda c\u1ea1nh h\u01a1n. N\u1ebfu b\u1ea1n mu\u1ed1n t\u1ea1o c\u00e1c bi\u1ec3u \u0111\u1ed3 strip plot ri\u00eang bi\u1ec7t theo t\u1eebng nh\u00f3m \u0111\u01b0\u1ee3c ch\u1ec9 \u0111\u1ecbnh b\u1edfi hue, c\u1ea7n s\u1eed d\u1ee5ng th\u00eam tham s\u1ed1 split=True trong c\u00f4ng c\u1ee5 v\u1ebd c\u1ee7a b\u1ea1n.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"6-Swarm-Plot-Bieu-do-bay-diem\"><\/span><strong>6. Swarm Plot (Bi\u1ec3u \u0111\u1ed3 b\u1ea7y \u0111i\u1ec3m)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>M\u1ed9t s\u1ed1 ng\u01b0\u1eddi d\u00f9ng th\u01b0\u1eddng k\u1ebft h\u1ee3p \u0111\u1eb7c \u0111i\u1ec3m c\u1ee7a violin plot v\u00e0 strip plot \u0111\u1ec3 t\u1ea1o ra swarm plot trong Seaborn. Bi\u1ec3u \u0111\u1ed3 n\u00e0y v\u1ec1 c\u01a1 b\u1ea3n gi\u1ed1ng strip plot, nh\u01b0ng c\u00e1c \u0111i\u1ec3m \u0111\u01b0\u1ee3c t\u1ef1 \u0111\u1ed9ng \u0111i\u1ec1u ch\u1ec9nh v\u1ecb tr\u00ed sao cho kh\u00f4ng ch\u1ed3ng l\u00ean nhau.<\/p>\n<p>Tuy nhi\u00ean, bi\u1ec3u \u0111\u1ed3 swarm plot kh\u00f4ng ph\u1ea3i l\u00fac n\u00e0o c\u0169ng ho\u1ea1t \u0111\u1ed9ng hi\u1ec7u qu\u1ea3 v\u1edbi c\u00e1c t\u1eadp d\u1eef li\u1ec7u l\u1edbn, v\u00ec qu\u00e1 tr\u00ecnh s\u1eafp x\u1ebfp v\u00e0 hi\u1ec3n th\u1ecb c\u00e1c \u0111i\u1ec3m c\u00f3 th\u1ec3 ti\u00eau t\u1ed1n nhi\u1ec1u t\u00e0i nguy\u00ean x\u1eed l\u00fd. V\u00ec v\u1eady, khi s\u1eed d\u1ee5ng v\u1edbi t\u1eadp d\u1eef li\u1ec7u \u0111\u00f4ng, n\u00ean k\u1ebft h\u1ee3p swarm plot v\u1edbi violin plot \u0111\u1ec3 bi\u1ec3u di\u1ec5n tr\u1ef1c quan ch\u00ednh x\u00e1c h\u01a1n.<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre><strong>swarmplot([x, y, hue, data, order, ...])<\/strong>\r\n<strong><\/strong><\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><\/p>\n<p>Python3<\/p>\n<pre>sns.swarmplot(x='day', y='total_bill', data=df)\r\n<strong><\/strong><\/pre>\n<p><strong>Output:\u00a0<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Swarm-plot-1.webp\" alt=\"Swarm plot \" width=\"384\" height=\"257\" class=\"aligncenter size-full wp-image-26967\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Swarm-plot-1.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Swarm-plot-1-300x201.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><strong>L\u01b0u \u00fd:<\/strong><\/p>\n<p>Swarm plot kh\u00f4ng ph\u00f9 h\u1ee3p v\u1edbi t\u1eadp d\u1eef li\u1ec7u l\u1edbn do t\u1ed1n nhi\u1ec1u t\u00e0i nguy\u00ean \u0111\u1ec3 s\u1eafp x\u1ebfp c\u00e1c \u0111i\u1ec3m. Th\u01b0\u1eddng n\u00ean k\u1ebft h\u1ee3p v\u1edbi bi\u1ec3u \u0111\u1ed3 violin \u0111\u1ec3 tr\u1ef1c quan hi\u1ec7u qu\u1ea3 h\u01a1n.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"7-Factorplot-Bieu-do-tong-hop-theo-loai\"><\/span><strong>7. Factorplot (Bi\u1ec3u \u0111\u1ed3 t\u1ed5ng h\u1ee3p theo lo\u1ea1i)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Factorplot l\u00e0 m\u1ed9t d\u1ea1ng bi\u1ec3u \u0111\u1ed3 t\u1ed5ng qu\u00e1t, cho ph\u00e9p b\u1ea1n ch\u1ecdn lo\u1ea1i bi\u1ec3u \u0111\u1ed3 b\u1eb1ng c\u00e1ch ch\u1ec9 \u0111\u1ecbnh tham s\u1ed1 <code>kind<\/code>. \u0110i\u1ec1u n\u00e0y gi\u00fap linh ho\u1ea1t chuy\u1ec3n \u0111\u1ed5i gi\u1eefa c\u00e1c ki\u1ec3u bi\u1ec3u \u0111\u1ed3 nh\u01b0 <code>bar<\/code>, <code>violin<\/code>, <code>swarm<\/code> m\u00e0 kh\u00f4ng c\u1ea7n vi\u1ebft l\u1ea1i to\u00e0n b\u1ed9 m\u00e3.<\/p>\n<p><strong>C\u00fa ph\u00e1p:<\/strong><\/p>\n<pre>sns.factorplot([x, y, hue, data, row, col, ...])\r\n<strong><\/strong><\/pre>\n<p><strong>V\u00ed d\u1ee5:<\/strong><\/p>\n<p>Python3<\/p>\n<pre>sns.factorplot(x='day', y='total_bill', data=df, kind='bar')<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Factorplot.webp\" alt=\"Factorplot\" width=\"384\" height=\"376\" class=\"aligncenter size-full wp-image-26968\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Factorplot.webp 384w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/Factorplot-300x294.webp 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<p><iframe loading=\"lazy\" title=\"H\u01b0\u1edbng D\u1eabn Tr\u1ef1c Quan Ho\u00e1 D\u1eef Li\u1ec7u v\u1edbi Seaborn v\u00e0 Python\" width=\"1020\" height=\"574\" src=\"https:\/\/www.youtube.com\/embed\/4_YB4ZWLgPg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<h2><span class=\"ez-toc-section\" id=\"So-sanh-Seaborn-va-Matplotlib\"><\/span><strong>So s\u00e1nh Seaborn v\u00e0 Matplotlib<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Matplotlib v\u00e0 Seaborn l\u00e0 hai th\u01b0 vi\u1ec7n tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u ph\u1ed5 bi\u1ebfn nh\u1ea5t trong Python. D\u00f9 c\u00f9ng m\u1ee5c \u0111\u00edch t\u1ea1o ra \u0111\u1ed3 h\u1ecda ch\u1ea5t l\u01b0\u1ee3ng cao, hai th\u01b0 vi\u1ec7n n\u00e0y c\u00f3 nh\u1eefng \u0111i\u1ec3m kh\u00e1c bi\u1ec7t r\u00f5 r\u1ec7t v\u00e0 ph\u00f9 h\u1ee3p v\u1edbi nh\u1eefng m\u1ee5c \u0111\u00edch s\u1eed d\u1ee5ng kh\u00e1c nhau.<\/p>\n<p>S\u1ef1 kh\u00e1c bi\u1ec7t l\u1edbn \u0111\u1ea7u ti\u00ean l\u00e0 v\u1ec1 m\u1ee9c \u0111\u1ed9 tr\u1eebu t\u01b0\u1ee3ng. Matplotlib l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n c\u1ea5p th\u1ea5p, cung c\u1ea5p b\u1ed9 c\u00f4ng c\u1ee5 phong ph\u00fa \u0111\u1ec3 t\u1ea1o ra c\u00e1c bi\u1ec3u \u0111\u1ed3 c\u00f3 th\u1ec3 t\u00f9y ch\u1ec9nh chi ti\u1ebft. Tuy nhi\u00ean, \u0111i k\u00e8m v\u1edbi s\u1ef1 linh ho\u1ea1t n\u00e0y l\u00e0 \u0111\u1ed9 ph\u1ee9c t\u1ea1p cao h\u01a1n v\u00e0 c\u00fa ph\u00e1p d\u00e0i d\u00f2ng, \u0111\u00f2i h\u1ecfi nhi\u1ec1u ki\u1ebfn th\u1ee9c k\u1ef9 thu\u1eadt.<\/p>\n<p>Ng\u01b0\u1ee3c l\u1ea1i, th\u01b0 vi\u1ec7n Seaborn l\u00e0 m\u1ed9t giao di\u1ec7n c\u1ea5p cao \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean Matplotlib, gi\u00fap t\u1ea1o c\u00e1c bi\u1ec3u \u0111\u1ed3 th\u1ed1ng k\u00ea m\u1ed9t c\u00e1ch \u0111\u01a1n gi\u1ea3n v\u00e0 tr\u1ef1c quan h\u01a1n. Seaborn \u0111\u01b0\u1ee3c t\u1ed1i \u01b0u h\u00f3a \u0111\u1ec3 l\u00e0m vi\u1ec7c v\u1edbi Pandas DataFrame, gi\u00fap ng\u01b0\u1eddi d\u00f9ng d\u1ec5 d\u00e0ng t\u1ea1o bi\u1ec3u \u0111\u1ed3 ch\u1ec9 v\u1edbi v\u00e0i d\u00f2ng m\u00e3.<\/p>\n<figure id=\"attachment_26974\" aria-describedby=\"caption-attachment-26974\" style=\"width: 800px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/So-sanh-Seaborn-va-Matplotlib.jpg\" alt=\"So s\u00e1nh Seaborn v\u00e0 Matplotlib\" width=\"800\" height=\"533\" class=\"size-full wp-image-26974\" title=\"\" srcset=\"https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/So-sanh-Seaborn-va-Matplotlib.jpg 800w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/So-sanh-Seaborn-va-Matplotlib-300x200.jpg 300w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/So-sanh-Seaborn-va-Matplotlib-768x512.jpg 768w, https:\/\/interdata.vn\/blog\/wp-content\/uploads\/2025\/04\/So-sanh-Seaborn-va-Matplotlib-750x500.jpg 750w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption id=\"caption-attachment-26974\" class=\"wp-caption-text\">So s\u00e1nh Seaborn v\u00e0 Matplotlib<\/figcaption><\/figure>\n<p>Ngo\u00e0i ra, Seaborn t\u00edch h\u1ee3p s\u1eb5n c\u00e1c h\u00e0m th\u1ed1ng k\u00ea, h\u1ed7 tr\u1ee3 ng\u01b0\u1eddi d\u00f9ng th\u1ef1c hi\u1ec7n c\u00e1c ph\u00e2n t\u00edch ph\u1ee9c t\u1ea1p m\u1ed9t c\u00e1ch tr\u1ef1c quan.<\/p>\n<p>M\u1ed9t kh\u00e1c bi\u1ec7t quan tr\u1ecdng kh\u00e1c l\u00e0 v\u1ec1 phong c\u00e1ch m\u1eb7c \u0111\u1ecbnh. Matplotlib ch\u1ec9 cung c\u1ea5p m\u1ed9t s\u1ed1 \u00edt ki\u1ec3u bi\u1ec3u \u0111\u1ed3 v\u00e0 b\u1ea3ng m\u00e0u m\u1eb7c \u0111\u1ecbnh, n\u00ean ng\u01b0\u1eddi d\u00f9ng th\u01b0\u1eddng ph\u1ea3i t\u1ef1 \u0111i\u1ec1u ch\u1ec9nh \u0111\u1ec3 \u0111\u1ea1t \u0111\u01b0\u1ee3c giao di\u1ec7n mong mu\u1ed1n.<\/p>\n<p>Trong khi \u0111\u00f3, Seaborn c\u00f3 nhi\u1ec1u ch\u1ee7 \u0111\u1ec1 v\u00e0 b\u1ea3ng m\u00e0u \u0111\u01b0\u1ee3c thi\u1ebft k\u1ebf t\u1ed1i \u01b0u s\u1eb5n cho c\u00e1c lo\u1ea1i d\u1eef li\u1ec7u kh\u00e1c nhau, gi\u00fap ng\u01b0\u1eddi d\u00f9ng t\u1ea1o bi\u1ec3u \u0111\u1ed3 b\u1eaft m\u1eaft m\u00e0 kh\u00f4ng c\u1ea7n t\u00f9y ch\u1ec9nh nhi\u1ec1u.<\/p>\n<p>T\u00f3m l\u1ea1i, n\u1ebfu b\u1ea1n c\u1ea7n t\u1ea1o c\u00e1c bi\u1ec3u \u0111\u1ed3 t\u00f9y bi\u1ebfn cao cho b\u00e0i thuy\u1ebft tr\u00ecnh ho\u1eb7c xu\u1ea5t b\u1ea3n, Matplotlib l\u00e0 l\u1ef1a ch\u1ecdn ph\u00f9 h\u1ee3p. C\u00f2n n\u1ebfu b\u1ea1n mu\u1ed1n tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u th\u1ed1ng k\u00ea nhanh ch\u00f3ng v\u00e0 d\u1ec5 d\u00e0ng trong qu\u00e1 tr\u00ecnh ph\u00e2n t\u00edch d\u1eef li\u1ec7u, th\u01b0 vi\u1ec7n Seaborn s\u1ebd l\u00e0 c\u00f4ng c\u1ee5 l\u00fd t\u01b0\u1edfng.<\/p>\n<p>L\u01b0u \u00fd r\u1eb1ng Seaborn \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean Matplotlib, do \u0111\u00f3 b\u1ea1n ho\u00e0n to\u00e0n c\u00f3 th\u1ec3 k\u1ebft h\u1ee3p c\u1ea3 hai \u0111\u1ec3 t\u1eadn d\u1ee5ng th\u1ebf m\u1ea1nh c\u1ee7a m\u1ed7i th\u01b0 vi\u1ec7n.<\/p>\n<p>Seaborn l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n kh\u00f4ng th\u1ec3 thi\u1ebfu \u0111\u1ed1i v\u1edbi nh\u1eefng ai l\u00e0m vi\u1ec7c v\u1edbi d\u1eef li\u1ec7u trong Python, \u0111\u1eb7c bi\u1ec7t l\u00e0 trong ph\u00e2n t\u00edch th\u1ed1ng k\u00ea v\u00e0 tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u. V\u1edbi c\u00e1c c\u00f4ng c\u1ee5 m\u1ea1nh m\u1ebd v\u00e0 giao di\u1ec7n \u0111\u01a1n gi\u1ea3n, Seaborn gi\u00fap ng\u01b0\u1eddi d\u00f9ng d\u1ec5 d\u00e0ng t\u1ea1o ra c\u00e1c bi\u1ec3u \u0111\u1ed3 \u0111\u1eb9p m\u1eaft v\u00e0 d\u1ec5 hi\u1ec3u.<\/p>\n<p>M\u1eb7c d\u00f9 Matplotlib v\u1eabn l\u00e0 th\u01b0 vi\u1ec7n m\u1ea1nh m\u1ebd h\u01a1n v\u1ec1 kh\u1ea3 n\u0103ng t\u00f9y bi\u1ebfn, Seaborn l\u1ea1i n\u1ed5i b\u1eadt v\u1ec1 s\u1ef1 d\u1ec5 s\u1eed d\u1ee5ng v\u00e0 t\u00edch h\u1ee3p s\u1eb5n c\u00e1c h\u00e0m ph\u00e2n t\u00edch th\u1ed1ng k\u00ea.<\/p>\n<p>Trong qu\u00e1 tr\u00ecnh s\u1eed d\u1ee5ng Seaborn \u0111\u1ec3 ph\u00e2n t\u00edch v\u00e0 tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u, vi\u1ec7c c\u00f3 m\u1ed9t m\u00f4i tr\u01b0\u1eddng m\u00e1y ch\u1ee7 m\u1ea1nh m\u1ebd v\u00e0 \u1ed5n \u0111\u1ecbnh l\u00e0 r\u1ea5t quan tr\u1ecdng \u0111\u1ec3 x\u1eed l\u00fd d\u1eef li\u1ec7u nhanh ch\u00f3ng. B\u1ea1n c\u00f3 th\u1ec3 <a href=\"https:\/\/interdata.vn\/thue-vps\/\">thu\u00ea VPS gi\u00e1 r\u1ebb<\/a> t\u1ea1i InterData v\u1edbi ph\u1ea7n c\u1ee9ng th\u1ebf h\u1ec7 m\u1edbi, bao g\u1ed3m CPU AMD EPYC ho\u1eb7c Intel Xeon Platinum, v\u00e0 \u1ed5 c\u1ee9ng SSD NVMe U.2, gi\u00fap t\u1ed1i \u01b0u h\u00f3a hi\u1ec7u su\u1ea5t l\u00e0m vi\u1ec7c c\u1ee7a b\u1ea1n.<\/p>\n<p>N\u1ebfu b\u1ea1n c\u1ea7n m\u1ed9t gi\u1ea3i ph\u00e1p linh ho\u1ea1t v\u00e0 hi\u1ec7u qu\u1ea3 h\u01a1n, <a href=\"https:\/\/interdata.vn\/cloud-server\/\">thu\u00ea Cloud Server gi\u00e1 r\u1ebb t\u1ed1c \u0111\u1ed9 cao<\/a> t\u1ea1i InterData s\u1ebd cung c\u1ea5p dung l\u01b0\u1ee3ng t\u1ed1i \u01b0u v\u00e0 b\u0103ng th\u00f4ng cao, gi\u00fap vi\u1ec7c tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u tr\u00ean Seaborn ho\u1eb7c c\u00e1c d\u1ef1 \u00e1n Python kh\u00e1c tr\u1edf n\u00ean nhanh ch\u00f3ng v\u00e0 m\u01b0\u1ee3t m\u00e0. T\u1eadn d\u1ee5ng c\u1ea5u h\u00ecnh m\u1ea1nh v\u00e0 \u1ed5n \u0111\u1ecbnh, b\u1ea1n c\u00f3 th\u1ec3 m\u1edf r\u1ed9ng d\u1ef1 \u00e1n d\u1ec5 d\u00e0ng m\u00e0 kh\u00f4ng lo ng\u1ea1i v\u1ec1 hi\u1ec7u su\u1ea5t.<\/p>\n<p>Li\u00ean h\u1ec7 v\u1edbi InterData \u0111\u1ec3 \u0111\u01b0\u1ee3c h\u1ed7 tr\u1ee3 v\u00e0 t\u01b0 v\u1ea5n v\u1ec1 d\u1ecbch v\u1ee5!<\/p>\n<p><strong>INTERDATA<\/strong><\/p>\n<ul>\n<li><strong>Website:<\/strong><span>\u00a0<\/span>Interdata.vn<\/li>\n<li><strong>Hotline:<\/strong><span>\u00a0<\/span>1900-636822<\/li>\n<li><strong>Email:<\/strong><span>\u00a0<\/span>Info@interdata.vn<\/li>\n<li><strong>VP\u0110D:<\/strong><span>\u00a0<\/span>240 Nguy\u1ec5n \u0110\u00ecnh Ch\u00ednh, P.11. Q. Ph\u00fa Nhu\u1eadn, TP. Ho\u0302\u0300 Ch\u00ed Minh<\/li>\n<li><strong>VPGD:<\/strong><span>\u00a0<\/span>S\u1ed1 211 \u0110\u01b0\u1eddng s\u1ed1 5, K\u0110T Lakeview City, P. An Ph\u00fa, TP. Th\u1ee7 \u0110\u1ee9c, TP. H\u1ed3 Ch\u00ed Minh<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Seaborn l\u00e0 m\u1ed9t th\u01b0 vi\u1ec7n Python m\u1ea1nh m\u1ebd v\u00e0 d\u1ec5 s\u1eed d\u1ee5ng, \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng tr\u00ean n\u1ec1n t\u1ea3ng Matplotlib, gi\u00fap vi\u1ec7c tr\u1ef1c quan h\u00f3a d\u1eef li\u1ec7u tr\u1edf n\u00ean \u0111\u01a1n gi\u1ea3n v\u00e0 tr\u1ef1c quan h\u01a1n. B\u00e0i vi\u1ebft n\u00e0y s\u1ebd gi\u1edbi thi\u1ec7u chi ti\u1ebft Seaborn l\u00e0 g\u00ec, c\u00e1c t\u00ednh n\u0103ng n\u1ed5i b\u1eadt, c\u00e1c h\u00e0m v\u1ebd bi\u1ec3u \u0111\u1ed3<\/p>\n","protected":false},"author":11,"featured_media":26975,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[140],"tags":[],"class_list":["post-26960","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lap-trinh"],"_links":{"self":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/26960","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/comments?post=26960"}],"version-history":[{"count":3,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/26960\/revisions"}],"predecessor-version":[{"id":26991,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/posts\/26960\/revisions\/26991"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/media\/26975"}],"wp:attachment":[{"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/media?parent=26960"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/categories?post=26960"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/interdata.vn\/blog\/wp-json\/wp\/v2\/tags?post=26960"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}