{ "cells": [ { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "skip" } }, "source": [ "![](images/EscUpmPolit_p.gif \"UPM\")" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "skip" } }, "source": [ "# Course Notes for Learning Intelligent Systems" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "skip" } }, "source": [ "Department of Telematic Engineering Systems, Universidad Politécnica de Madrid, © Carlos A. Iglesias" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "skip" } }, "source": [ "## [Introduction to Preprocessing](00_Intro_Preprocessing.ipynb)" ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "# Initial Check with Pandas\n", "\n", "We can start with a quick quality check." ] }, { "cell_type": "markdown", "metadata": { "slideshow": { "slide_type": "subslide" } }, "source": [ "## Load and check data\n", "Check which data you are loading." ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "slideshow": { "slide_type": "fragment" } }, "outputs": [ { "data": { "text/html": [ "
\n", " | PassengerId | \n", "Survived | \n", "Pclass | \n", "Name | \n", "Sex | \n", "Age | \n", "SibSp | \n", "Parch | \n", "Ticket | \n", "Fare | \n", "Cabin | \n", "Embarked | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "0 | \n", "3 | \n", "Braund, Mr. Owen Harris | \n", "male | \n", "22.0 | \n", "1 | \n", "0 | \n", "A/5 21171 | \n", "7.2500 | \n", "NaN | \n", "S | \n", "
1 | \n", "2 | \n", "1 | \n", "1 | \n", "Cumings, Mrs. John Bradley (Florence Briggs Th... | \n", "female | \n", "38.0 | \n", "1 | \n", "0 | \n", "PC 17599 | \n", "71.2833 | \n", "C85 | \n", "C | \n", "
2 | \n", "3 | \n", "1 | \n", "3 | \n", "Heikkinen, Miss. Laina | \n", "female | \n", "26.0 | \n", "0 | \n", "0 | \n", "STON/O2. 3101282 | \n", "7.9250 | \n", "NaN | \n", "S | \n", "
3 | \n", "4 | \n", "1 | \n", "1 | \n", "Futrelle, Mrs. Jacques Heath (Lily May Peel) | \n", "female | \n", "35.0 | \n", "1 | \n", "0 | \n", "113803 | \n", "53.1000 | \n", "C123 | \n", "S | \n", "
4 | \n", "5 | \n", "0 | \n", "3 | \n", "Allen, Mr. William Henry | \n", "male | \n", "35.0 | \n", "0 | \n", "0 | \n", "373450 | \n", "8.0500 | \n", "NaN | \n", "S | \n", "
5 | \n", "6 | \n", "0 | \n", "3 | \n", "Moran, Mr. James | \n", "male | \n", "NaN | \n", "0 | \n", "0 | \n", "330877 | \n", "8.4583 | \n", "NaN | \n", "Q | \n", "
6 | \n", "7 | \n", "0 | \n", "1 | \n", "McCarthy, Mr. Timothy J | \n", "male | \n", "54.0 | \n", "0 | \n", "0 | \n", "17463 | \n", "51.8625 | \n", "E46 | \n", "S | \n", "
7 | \n", "8 | \n", "0 | \n", "3 | \n", "Palsson, Master. Gosta Leonard | \n", "male | \n", "2.0 | \n", "3 | \n", "1 | \n", "349909 | \n", "21.0750 | \n", "NaN | \n", "S | \n", "
8 | \n", "9 | \n", "1 | \n", "3 | \n", "Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg) | \n", "female | \n", "27.0 | \n", "0 | \n", "2 | \n", "347742 | \n", "11.1333 | \n", "NaN | \n", "S | \n", "
9 | \n", "10 | \n", "1 | \n", "2 | \n", "Nasser, Mrs. Nicholas (Adele Achem) | \n", "female | \n", "14.0 | \n", "1 | \n", "0 | \n", "237736 | \n", "30.0708 | \n", "NaN | \n", "C | \n", "