Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Data Science Workbook - Census Income Dataset.ipynb #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Data Science Workbook - Census Income Dataset.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down