{ "cells": [ { "cell_type": "code", "execution_count": 6, "id": "12dba44a", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd" ] }, { "cell_type": "code", "execution_count": 7, "id": "1d480e94", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "zsh:1: command not found: kaggle\r\n" ] } ], "source": [ "!kaggle datasets download -d gender_classification_v7.csv" ] }, { "cell_type": "code", "execution_count": 41, "id": "13a40d88", "metadata": { "scrolled": true }, "outputs": [ { "data": { "text/html": [ "
\n", " | long_hair | \n", "forehead_width_cm | \n", "forehead_height_cm | \n", "nose_wide | \n", "nose_long | \n", "lips_thin | \n", "distance_nose_to_lip_long | \n", "gender | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "11.8 | \n", "6.1 | \n", "1 | \n", "0 | \n", "1 | \n", "1 | \n", "Male | \n", "
1 | \n", "0 | \n", "14.0 | \n", "5.4 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "Female | \n", "
2 | \n", "0 | \n", "11.8 | \n", "6.3 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
3 | \n", "0 | \n", "14.4 | \n", "6.1 | \n", "0 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
4 | \n", "1 | \n", "13.5 | \n", "5.9 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
4996 | \n", "1 | \n", "13.6 | \n", "5.1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4997 | \n", "1 | \n", "11.9 | \n", "5.4 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4998 | \n", "1 | \n", "12.9 | \n", "5.7 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4999 | \n", "1 | \n", "13.2 | \n", "6.2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
5000 | \n", "1 | \n", "15.4 | \n", "5.4 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
5001 rows × 8 columns
\n", "\n", " | long_hair | \n", "forehead_width_cm | \n", "forehead_height_cm | \n", "nose_wide | \n", "nose_long | \n", "lips_thin | \n", "distance_nose_to_lip_long | \n", "gender | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "11.8 | \n", "6.1 | \n", "1 | \n", "0 | \n", "1 | \n", "1 | \n", "Male | \n", "
1 | \n", "0 | \n", "14.0 | \n", "5.4 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "Female | \n", "
2 | \n", "0 | \n", "11.8 | \n", "6.3 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
3 | \n", "0 | \n", "14.4 | \n", "6.1 | \n", "0 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
4 | \n", "1 | \n", "13.5 | \n", "5.9 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
4996 | \n", "1 | \n", "13.6 | \n", "5.1 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4997 | \n", "1 | \n", "11.9 | \n", "5.4 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4998 | \n", "1 | \n", "12.9 | \n", "5.7 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4999 | \n", "1 | \n", "13.2 | \n", "6.2 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
5000 | \n", "1 | \n", "15.4 | \n", "5.4 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
5001 rows × 8 columns
\n", "\n", " | long_hair | \n", "forehead_width_cm | \n", "forehead_height_cm | \n", "nose_wide | \n", "nose_long | \n", "lips_thin | \n", "distance_nose_to_lip_long | \n", "gender | \n", "
---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "0.097561 | \n", "0.50 | \n", "1 | \n", "0 | \n", "1 | \n", "1 | \n", "Male | \n", "
1 | \n", "0 | \n", "0.634146 | \n", "0.15 | \n", "0 | \n", "0 | \n", "1 | \n", "0 | \n", "Female | \n", "
2 | \n", "0 | \n", "0.097561 | \n", "0.60 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
3 | \n", "0 | \n", "0.731707 | \n", "0.50 | \n", "0 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
4 | \n", "1 | \n", "0.512195 | \n", "0.40 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
4996 | \n", "1 | \n", "0.536585 | \n", "0.00 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4997 | \n", "1 | \n", "0.121951 | \n", "0.15 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4998 | \n", "1 | \n", "0.365854 | \n", "0.30 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4999 | \n", "1 | \n", "0.439024 | \n", "0.55 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
5000 | \n", "1 | \n", "0.975610 | \n", "0.15 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
5001 rows × 8 columns
\n", "\n", " | long_hair | \n", "forehead_width_cm | \n", "forehead_height_cm | \n", "nose_wide | \n", "nose_long | \n", "lips_thin | \n", "distance_nose_to_lip_long | \n", "gender | \n", "
---|---|---|---|---|---|---|---|---|
4432 | \n", "1 | \n", "0.512195 | \n", "0.10 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
2162 | \n", "1 | \n", "0.243902 | \n", "0.70 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
2396 | \n", "1 | \n", "0.512195 | \n", "0.15 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
4769 | \n", "1 | \n", "0.853659 | \n", "0.10 | \n", "1 | \n", "1 | \n", "0 | \n", "1 | \n", "Male | \n", "
2271 | \n", "1 | \n", "0.292683 | \n", "0.70 | \n", "0 | \n", "1 | \n", "0 | \n", "0 | \n", "Female | \n", "
... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "... | \n", "
846 | \n", "1 | \n", "0.097561 | \n", "0.45 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
2551 | \n", "0 | \n", "0.243902 | \n", "0.35 | \n", "1 | \n", "1 | \n", "1 | \n", "1 | \n", "Male | \n", "
2928 | \n", "1 | \n", "0.634146 | \n", "0.20 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
117 | \n", "1 | \n", "0.707317 | \n", "0.50 | \n", "0 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
645 | \n", "1 | \n", "0.195122 | \n", "0.05 | \n", "1 | \n", "0 | \n", "0 | \n", "0 | \n", "Female | \n", "
750 rows × 8 columns
\n", "