From f10f11cf5e4af69d9cdf505e8fd090383b14175d Mon Sep 17 00:00:00 2001 From: manishasihag0 Date: Mon, 20 Dec 2021 23:48:30 +0530 Subject: [PATCH 1/3] Update Data Science Workbook - Census Income Dataset.ipynb Checked for depreicated packages. Changed pandas.tools.plotting. --- Data Science Workbook - Census Income Dataset.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Data Science Workbook - Census Income Dataset.ipynb b/Data Science Workbook - Census Income Dataset.ipynb index 6297fbc..9b1b998 100644 --- a/Data Science Workbook - Census Income Dataset.ipynb +++ b/Data Science Workbook - Census Income Dataset.ipynb @@ -167,7 +167,7 @@ "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", From bebbd56e24ece5bcd44a1e28347a1ff9008fd43d Mon Sep 17 00:00:00 2001 From: manishasihag0 <48504606+manishasihag0@users.noreply.github.com> Date: Tue, 21 Dec 2021 10:35:06 +0530 Subject: [PATCH 2/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 050bf10fd95302c2636dd849ab685a103b0670b8 Mon Sep 17 00:00:00 2001 From: manishasihag0 Date: Tue, 21 Dec 2021 11:06:16 +0530 Subject: [PATCH 3/3] Update Data Science Workbook - Census Income Dataset.ipynb --- Data Science Workbook - Census Income Dataset.ipynb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Data Science Workbook - Census Income Dataset.ipynb b/Data Science Workbook - Census Income Dataset.ipynb index 9b1b998..5c46fd4 100644 --- a/Data Science Workbook - Census Income Dataset.ipynb +++ b/Data Science Workbook - Census Income Dataset.ipynb @@ -162,6 +162,10 @@ "# 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", @@ -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",