Skip to content

Instantly share code, notes, and snippets.

@kperry2215
Created November 21, 2019 05:15
Show Gist options
  • Save kperry2215/31c61ef4d0bfda0d3346f5eefc5ddc48 to your computer and use it in GitHub Desktop.
Save kperry2215/31c61ef4d0bfda0d3346f5eefc5ddc48 to your computer and use it in GitHub Desktop.
df = pd.read_csv('https://archive.ics.uci.edu/ml/machine-learning-databases/adult/adult.data', header = None)
#Declare the column names of the data set
df.columns = ['age', 'workclass', 'fnlwgt', 'education', 'education-num',
'marital-status', 'occupation', 'relationship',
'race', 'sex', 'capital-gain', 'capital-loss', 'hours-per-week',
'native-country', 'salary']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment