diff --git a/pandas/pandas_clean.ipynb b/pandas/pandas_clean.ipynb index 221366f..88efc19 100644 --- a/pandas/pandas_clean.ipynb +++ b/pandas/pandas_clean.ipynb @@ -13,10 +13,8 @@ "metadata": {}, "source": [ "# Pandas Cleaning\n", - "* Clean\n", - "* Transform\n", - "* Merge\n", - "* Reshape\n", + "* Replace\n", + "* Drop\n", "* Concatenate" ] }, @@ -36,7 +34,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "Check for matching values in a specific column for replacement:" + "Setup a DataFrame:" ] }, { @@ -115,61 +113,11 @@ "prompt_number": 2 }, { - "cell_type": "code", - "collapsed": false, - "input": [ - "df_1[df_1['state'] == 'VA']" - ], - "language": "python", + "cell_type": "markdown", "metadata": {}, - "outputs": [ - { - "html": [ - "
\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
populationstateyear
0 5.0 VA 2012
1 5.1 VA 2013
2 5.2 VA 2014
\n", - "
" - ], - "metadata": {}, - "output_type": "pyout", - "prompt_number": 3, - "text": [ - " population state year\n", - "0 5.0 VA 2012\n", - "1 5.1 VA 2013\n", - "2 5.2 VA 2014" - ] - } - ], - "prompt_number": 3 + "source": [ + "## Replace" + ] }, { "cell_type": "markdown", @@ -329,6 +277,13 @@ ], "prompt_number": 5 }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Drop" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -402,6 +357,13 @@ ], "prompt_number": 6 }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Concatenate" + ] + }, { "cell_type": "markdown", "metadata": {},