diff --git a/Data Science Workbook - Census Income Dataset.ipynb b/Data Science Workbook - Census Income Dataset.ipynb index 6297fbc..5c46fd4 100644 --- a/Data Science Workbook - Census Income Dataset.ipynb +++ b/Data Science Workbook - Census Income Dataset.ipynb @@ -162,12 +162,16 @@ "# Data Manipulation \n", "import numpy as np\n", "import pandas as pd\n", + "# For python3 users \n", + "from pandas.compat import StringIO\n", + "from pandas.compat import BytesIO\n", + "import subprocess\n", "\n", "# Visualization \n", "import matplotlib.pyplot as plt\n", "import missingno\n", "import seaborn as sns\n", - "from pandas.tools.plotting import scatter_matrix\n", + "from pandas.plotting import scatter_matrix\n", "from mpl_toolkits.mplot3d import Axes3D\n", "\n", "# Feature Selection and Encoding\n", @@ -313,7 +317,7 @@ } ], "source": [ - "conda_packages_list = StringIO.StringIO(subprocess.Popen([\"conda\", \"list\"], \n", + "conda_packages_list = BytesIO(subprocess.Popen([\"conda\", \"list\"], \n", " stdout=subprocess.PIPE).communicate()[0])\n", "conda_packages_list = pd.read_csv(conda_packages_list, \n", " names=['Package Name','Version','Python Version','Repo','Other'], \n", diff --git a/README.md b/README.md index 7c2ef9d..0193deb 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ Data Science Notebook on a Classification Task ## Objective -In the Jupyter Notebook included in this page, we will using the Census Income Dataset to predict whether an individual's income exceeds $50K/yr based on census data. +In the Jupyter Notebook included in this page, we will be using the Census Income Dataset to predict whether an individual's income exceeds $50K/yr based on census data. The Dataset can be found here: - https://archive.ics.uci.edu/ml/datasets/adult @@ -66,7 +66,7 @@ Go back to: ## Troubleshooting Docker -Here's a few useful commands in case something goes wrong with your docker instance: +Here are a few useful commands in case something goes wrong with your docker instance: ```shell # Restart Jupyter Docker Container