안효원 안효원 2022-05-02
two
@657e7e1f36c5232f0ea2aad74affbacc77ad9579
20200502/df.ipynb
--- 20200502/df.ipynb
+++ 20200502/df.ipynb
@@ -2,8 +2,8 @@
  "cells": [
   {
    "cell_type": "code",
-   "execution_count": 7,
-   "id": "d318019a",
+   "execution_count": 87,
+   "id": "7751f08f",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -12,8 +12,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 12,
-   "id": "78fed803",
+   "execution_count": 88,
+   "id": "55538996",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -22,8 +22,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 13,
-   "id": "e1a03a23",
+   "execution_count": 89,
+   "id": "d0b82694",
    "metadata": {},
    "outputs": [
     {
@@ -81,7 +81,7 @@
        "1  이순신  19  여  163  53"
       ]
      },
-     "execution_count": 13,
+     "execution_count": 89,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -92,8 +92,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 16,
-   "id": "8276cfba",
+   "execution_count": 90,
+   "id": "38ee5685",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -102,8 +102,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 17,
-   "id": "945a1142",
+   "execution_count": 91,
+   "id": "33fa0239",
    "metadata": {},
    "outputs": [
     {
@@ -166,7 +166,7 @@
        "이순신  19  여  163  53"
       ]
      },
-     "execution_count": 17,
+     "execution_count": 91,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -177,8 +177,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 25,
-   "id": "111a1c5f",
+   "execution_count": 92,
+   "id": "749d1c65",
    "metadata": {},
    "outputs": [
     {
@@ -241,7 +241,7 @@
        "이순신  19  여  163  53"
       ]
      },
-     "execution_count": 25,
+     "execution_count": 92,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -252,8 +252,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 27,
-   "id": "59442de0",
+   "execution_count": 93,
+   "id": "2bba1d93",
    "metadata": {},
    "outputs": [
     {
@@ -304,7 +304,7 @@
        "이순신  19"
       ]
      },
-     "execution_count": 27,
+     "execution_count": 93,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -315,8 +315,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 31,
-   "id": "9adeed0c",
+   "execution_count": 94,
+   "id": "5139c5f4",
    "metadata": {},
    "outputs": [
     {
@@ -375,7 +375,7 @@
        "이순신  여  163  53"
       ]
      },
-     "execution_count": 31,
+     "execution_count": 94,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -386,8 +386,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 32,
-   "id": "3e72a447",
+   "execution_count": 95,
+   "id": "4cc78d1f",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -396,8 +396,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 44,
-   "id": "e9b958e8",
+   "execution_count": 96,
+   "id": "a0368a19",
    "metadata": {},
    "outputs": [
     {
@@ -464,7 +464,7 @@
        "이순신  19  여  163  53    0"
       ]
      },
-     "execution_count": 44,
+     "execution_count": 96,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -475,8 +475,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 45,
-   "id": "c435db05",
+   "execution_count": 97,
+   "id": "21f1488e",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -485,8 +485,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 46,
-   "id": "5c13154e",
+   "execution_count": 98,
+   "id": "db577036",
    "metadata": {},
    "outputs": [
     {
@@ -562,7 +562,7 @@
        "유관순   0  0    0   0    0"
       ]
      },
-     "execution_count": 46,
+     "execution_count": 98,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -573,8 +573,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 63,
-   "id": "61e5c95a",
+   "execution_count": 99,
+   "id": "009ea0c5",
    "metadata": {},
    "outputs": [],
    "source": [
@@ -583,8 +583,8 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 64,
-   "id": "2f37fae4",
+   "execution_count": 100,
+   "id": "f24bf138",
    "metadata": {},
    "outputs": [
     {
@@ -634,10 +634,10 @@
        "    </tr>\n",
        "    <tr>\n",
        "      <th>이순신</th>\n",
-       "      <td>28</td>\n",
-       "      <td>남</td>\n",
-       "      <td>177</td>\n",
-       "      <td>65</td>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
        "      <td>0</td>\n",
        "    </tr>\n",
        "    <tr>\n",
@@ -656,11 +656,11 @@
        "     나이 성별    키  체중  DMI\n",
        "이름                      \n",
        "홍길동  25  남  185  89    0\n",
-       "이순신  28  남  177  65    0\n",
+       "이순신  19  여  163  53    0\n",
        "유관순  24  여  166  23    0"
       ]
      },
-     "execution_count": 64,
+     "execution_count": 100,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -671,22 +671,22 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 65,
-   "id": "5b967150",
+   "execution_count": 101,
+   "id": "8aa2aada",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "나이      28\n",
-       "성별       남\n",
-       "키      177\n",
-       "체중      65\n",
+       "나이      19\n",
+       "성별       여\n",
+       "키      163\n",
+       "체중      53\n",
        "DMI      0\n",
        "Name: 이순신, dtype: object"
       ]
      },
-     "execution_count": 65,
+     "execution_count": 101,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -697,17 +697,17 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 67,
-   "id": "da9482ac",
+   "execution_count": 102,
+   "id": "e392a242",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "177"
+       "163"
       ]
      },
-     "execution_count": 67,
+     "execution_count": 102,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -718,19 +718,19 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 68,
-   "id": "cad4fb14",
+   "execution_count": 103,
+   "id": "3bcdf7ff",
    "metadata": {},
    "outputs": [
     {
      "data": {
       "text/plain": [
-       "체중     65\n",
-       "키     177\n",
+       "체중     53\n",
+       "키     163\n",
        "Name: 이순신, dtype: object"
       ]
      },
-     "execution_count": 68,
+     "execution_count": 103,
      "metadata": {},
      "output_type": "execute_result"
     }
@@ -741,8 +741,640 @@
   },
   {
    "cell_type": "code",
+   "execution_count": 104,
+   "id": "a4bd7696",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th>이름</th>\n",
+       "      <th>홍길동</th>\n",
+       "      <th>이순신</th>\n",
+       "      <th>유관순</th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>나이</th>\n",
+       "      <td>25</td>\n",
+       "      <td>19</td>\n",
+       "      <td>24</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>성별</th>\n",
+       "      <td>남</td>\n",
+       "      <td>여</td>\n",
+       "      <td>여</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>키</th>\n",
+       "      <td>185</td>\n",
+       "      <td>163</td>\n",
+       "      <td>166</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>체중</th>\n",
+       "      <td>89</td>\n",
+       "      <td>53</td>\n",
+       "      <td>23</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>DMI</th>\n",
+       "      <td>0</td>\n",
+       "      <td>0</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "이름   홍길동  이순신  유관순\n",
+       "나이    25   19   24\n",
+       "성별     남    여    여\n",
+       "키    185  163  166\n",
+       "체중    89   53   23\n",
+       "DMI    0    0    0"
+      ]
+     },
+     "execution_count": 104,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df.transpose()"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 105,
+   "id": "1761096c",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "df2 = df"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 106,
+   "id": "83f4eab2",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>나이</th>\n",
+       "      <th>성별</th>\n",
+       "      <th>키</th>\n",
+       "      <th>체중</th>\n",
+       "      <th>DMI</th>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이름</th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>홍길동</th>\n",
+       "      <td>25</td>\n",
+       "      <td>남</td>\n",
+       "      <td>185</td>\n",
+       "      <td>89</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이순신</th>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>유관순</th>\n",
+       "      <td>24</td>\n",
+       "      <td>여</td>\n",
+       "      <td>166</td>\n",
+       "      <td>23</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "     나이 성별    키  체중  DMI\n",
+       "이름                      \n",
+       "홍길동  25  남  185  89    0\n",
+       "이순신  19  여  163  53    0\n",
+       "유관순  24  여  166  23    0"
+      ]
+     },
+     "execution_count": 106,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df2"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 107,
+   "id": "eb5006a7",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "df3 = df.copy()"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 108,
+   "id": "78c400ba",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>나이</th>\n",
+       "      <th>성별</th>\n",
+       "      <th>키</th>\n",
+       "      <th>체중</th>\n",
+       "      <th>DMI</th>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이름</th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>홍길동</th>\n",
+       "      <td>25</td>\n",
+       "      <td>남</td>\n",
+       "      <td>185</td>\n",
+       "      <td>89</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이순신</th>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>유관순</th>\n",
+       "      <td>24</td>\n",
+       "      <td>여</td>\n",
+       "      <td>166</td>\n",
+       "      <td>23</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "     나이 성별    키  체중  DMI\n",
+       "이름                      \n",
+       "홍길동  25  남  185  89    0\n",
+       "이순신  19  여  163  53    0\n",
+       "유관순  24  여  166  23    0"
+      ]
+     },
+     "execution_count": 108,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df3"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 109,
+   "id": "f02ab960",
+   "metadata": {
+    "scrolled": true
+   },
+   "outputs": [],
+   "source": [
+    "df.drop('유관순', inplace=True)"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 110,
+   "id": "3aa56f51",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>나이</th>\n",
+       "      <th>성별</th>\n",
+       "      <th>키</th>\n",
+       "      <th>체중</th>\n",
+       "      <th>DMI</th>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이름</th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>홍길동</th>\n",
+       "      <td>25</td>\n",
+       "      <td>남</td>\n",
+       "      <td>185</td>\n",
+       "      <td>89</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이순신</th>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "     나이 성별    키  체중  DMI\n",
+       "이름                      \n",
+       "홍길동  25  남  185  89    0\n",
+       "이순신  19  여  163  53    0"
+      ]
+     },
+     "execution_count": 110,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 111,
+   "id": "46c07ca4",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>나이</th>\n",
+       "      <th>성별</th>\n",
+       "      <th>키</th>\n",
+       "      <th>체중</th>\n",
+       "      <th>DMI</th>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이름</th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>홍길동</th>\n",
+       "      <td>25</td>\n",
+       "      <td>남</td>\n",
+       "      <td>185</td>\n",
+       "      <td>89</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이순신</th>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "     나이 성별    키  체중  DMI\n",
+       "이름                      \n",
+       "홍길동  25  남  185  89    0\n",
+       "이순신  19  여  163  53    0"
+      ]
+     },
+     "execution_count": 111,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df2"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 112,
+   "id": "0acaa561",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>나이</th>\n",
+       "      <th>성별</th>\n",
+       "      <th>키</th>\n",
+       "      <th>체중</th>\n",
+       "      <th>DMI</th>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이름</th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>홍길동</th>\n",
+       "      <td>25</td>\n",
+       "      <td>남</td>\n",
+       "      <td>185</td>\n",
+       "      <td>89</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이순신</th>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>유관순</th>\n",
+       "      <td>24</td>\n",
+       "      <td>여</td>\n",
+       "      <td>166</td>\n",
+       "      <td>23</td>\n",
+       "      <td>0</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "     나이 성별    키  체중  DMI\n",
+       "이름                      \n",
+       "홍길동  25  남  185  89    0\n",
+       "이순신  19  여  163  53    0\n",
+       "유관순  24  여  166  23    0"
+      ]
+     },
+     "execution_count": 112,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df3"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 114,
+   "id": "74386020",
+   "metadata": {},
+   "outputs": [],
+   "source": [
+    "df3.drop('DMI', axis=1, inplace=True)"
+   ]
+  },
+  {
+   "cell_type": "code",
+   "execution_count": 115,
+   "id": "10fba552",
+   "metadata": {},
+   "outputs": [
+    {
+     "data": {
+      "text/html": [
+       "<div>\n",
+       "<style scoped>\n",
+       "    .dataframe tbody tr th:only-of-type {\n",
+       "        vertical-align: middle;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe tbody tr th {\n",
+       "        vertical-align: top;\n",
+       "    }\n",
+       "\n",
+       "    .dataframe thead th {\n",
+       "        text-align: right;\n",
+       "    }\n",
+       "</style>\n",
+       "<table border=\"1\" class=\"dataframe\">\n",
+       "  <thead>\n",
+       "    <tr style=\"text-align: right;\">\n",
+       "      <th></th>\n",
+       "      <th>나이</th>\n",
+       "      <th>성별</th>\n",
+       "      <th>키</th>\n",
+       "      <th>체중</th>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이름</th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "      <th></th>\n",
+       "    </tr>\n",
+       "  </thead>\n",
+       "  <tbody>\n",
+       "    <tr>\n",
+       "      <th>홍길동</th>\n",
+       "      <td>25</td>\n",
+       "      <td>남</td>\n",
+       "      <td>185</td>\n",
+       "      <td>89</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>이순신</th>\n",
+       "      <td>19</td>\n",
+       "      <td>여</td>\n",
+       "      <td>163</td>\n",
+       "      <td>53</td>\n",
+       "    </tr>\n",
+       "    <tr>\n",
+       "      <th>유관순</th>\n",
+       "      <td>24</td>\n",
+       "      <td>여</td>\n",
+       "      <td>166</td>\n",
+       "      <td>23</td>\n",
+       "    </tr>\n",
+       "  </tbody>\n",
+       "</table>\n",
+       "</div>"
+      ],
+      "text/plain": [
+       "     나이 성별    키  체중\n",
+       "이름                 \n",
+       "홍길동  25  남  185  89\n",
+       "이순신  19  여  163  53\n",
+       "유관순  24  여  166  23"
+      ]
+     },
+     "execution_count": 115,
+     "metadata": {},
+     "output_type": "execute_result"
+    }
+   ],
+   "source": [
+    "df3"
+   ]
+  },
+  {
+   "cell_type": "code",
    "execution_count": null,
-   "id": "f1fdf9ca",
+   "id": "1d4feb02",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -750,7 +1382,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "1bd88754",
+   "id": "be501238",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -758,7 +1390,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "7e733b15",
+   "id": "442028fe",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -766,7 +1398,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "0deb051a",
+   "id": "8db0ece8",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -774,7 +1406,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "7be238a4",
+   "id": "8df4eea1",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -782,7 +1414,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "387422c4",
+   "id": "7119cc11",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -790,7 +1422,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "2f3f244b",
+   "id": "640b7a81",
    "metadata": {},
    "outputs": [],
    "source": []
@@ -798,15 +1430,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "id": "88f67dfd",
-   "metadata": {},
-   "outputs": [],
-   "source": []
-  },
-  {
-   "cell_type": "code",
-   "execution_count": null,
-   "id": "a66ddfaf",
+   "id": "a8633397",
    "metadata": {},
    "outputs": [],
    "source": []
Add a comment
List