Skip to content

Instantly share code, notes, and snippets.

@imankulov
Created June 16, 2018 11:16
Show Gist options
  • Save imankulov/22c79425d5c0f8a0739c32df7e99933b to your computer and use it in GitHub Desktop.
Save imankulov/22c79425d5c0f8a0739c32df7e99933b to your computer and use it in GitHub Desktop.
StackOverflow survery playground
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": 91,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"pd.set_option(\"display.max_rows\", 5000)\n",
"pd.set_option(\"display.max_columns\", 1000)\n",
"pd.set_option(\"display.max_colwidth\", 10000)\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 69,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv('survey_results_public.csv', low_memory=False)"
]
},
{
"cell_type": "code",
"execution_count": 78,
"metadata": {},
"outputs": [],
"source": [
"dummy_columns = [\n",
" 'Hobby',\n",
" 'OpenSource',\n",
" 'Country',\n",
" 'Student',\n",
" 'Employment',\n",
" 'FormalEducation',\n",
" 'UndergradMajor',\n",
" 'CompanySize',\n",
" 'YearsCoding',\n",
" 'YearsCodingProf',\n",
" 'JobSatisfaction', # !\n",
" 'CareerSatisfaction',\n",
" 'HopeFiveYears',\n",
" 'JobSearchStatus',\n",
" 'LastNewJob',\n",
" 'UpdateCV',\n",
" 'TimeFullyProductive',\n",
" 'TimeAfterBootcamp',\n",
"]"
]
},
{
"cell_type": "code",
"execution_count": 81,
"metadata": {},
"outputs": [],
"source": [
"df2 = pd.get_dummies(df[dummy_columns])"
]
},
{
"cell_type": "code",
"execution_count": 82,
"metadata": {},
"outputs": [],
"source": [
"from sklearn.model_selection import train_test_split\n",
"\n",
"train, test = train_test_split(df2, test_size = 0.2)"
]
},
{
"cell_type": "code",
"execution_count": 83,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Hobby_No</th>\n",
" <th>Hobby_Yes</th>\n",
" <th>OpenSource_No</th>\n",
" <th>OpenSource_Yes</th>\n",
" <th>Country_Afghanistan</th>\n",
" <th>Country_Albania</th>\n",
" <th>Country_Algeria</th>\n",
" <th>Country_Andorra</th>\n",
" <th>Country_Angola</th>\n",
" <th>Country_Antigua and Barbuda</th>\n",
" <th>Country_Argentina</th>\n",
" <th>Country_Armenia</th>\n",
" <th>Country_Australia</th>\n",
" <th>Country_Austria</th>\n",
" <th>Country_Azerbaijan</th>\n",
" <th>Country_Bahamas</th>\n",
" <th>Country_Bahrain</th>\n",
" <th>Country_Bangladesh</th>\n",
" <th>Country_Barbados</th>\n",
" <th>Country_Belarus</th>\n",
" <th>Country_Belgium</th>\n",
" <th>Country_Belize</th>\n",
" <th>Country_Benin</th>\n",
" <th>Country_Bhutan</th>\n",
" <th>Country_Bolivia</th>\n",
" <th>Country_Bosnia and Herzegovina</th>\n",
" <th>Country_Botswana</th>\n",
" <th>Country_Brazil</th>\n",
" <th>Country_Brunei Darussalam</th>\n",
" <th>Country_Bulgaria</th>\n",
" <th>Country_Burkina Faso</th>\n",
" <th>Country_Burundi</th>\n",
" <th>Country_Cambodia</th>\n",
" <th>Country_Cameroon</th>\n",
" <th>Country_Canada</th>\n",
" <th>Country_Cape Verde</th>\n",
" <th>Country_Central African Republic</th>\n",
" <th>Country_Chile</th>\n",
" <th>Country_China</th>\n",
" <th>Country_Colombia</th>\n",
" <th>Country_Congo, Republic of the...</th>\n",
" <th>Country_Costa Rica</th>\n",
" <th>Country_Croatia</th>\n",
" <th>Country_Cuba</th>\n",
" <th>Country_Cyprus</th>\n",
" <th>Country_Czech Republic</th>\n",
" <th>Country_Côte d'Ivoire</th>\n",
" <th>Country_Democratic People's Republic of Korea</th>\n",
" <th>Country_Democratic Republic of the Congo</th>\n",
" <th>Country_Denmark</th>\n",
" <th>Country_Djibouti</th>\n",
" <th>Country_Dominica</th>\n",
" <th>Country_Dominican Republic</th>\n",
" <th>Country_Ecuador</th>\n",
" <th>Country_Egypt</th>\n",
" <th>Country_El Salvador</th>\n",
" <th>Country_Eritrea</th>\n",
" <th>Country_Estonia</th>\n",
" <th>Country_Ethiopia</th>\n",
" <th>Country_Fiji</th>\n",
" <th>Country_Finland</th>\n",
" <th>Country_France</th>\n",
" <th>Country_Gabon</th>\n",
" <th>Country_Gambia</th>\n",
" <th>Country_Georgia</th>\n",
" <th>Country_Germany</th>\n",
" <th>Country_Ghana</th>\n",
" <th>Country_Greece</th>\n",
" <th>Country_Grenada</th>\n",
" <th>Country_Guatemala</th>\n",
" <th>Country_Guinea</th>\n",
" <th>Country_Guinea-Bissau</th>\n",
" <th>Country_Guyana</th>\n",
" <th>Country_Haiti</th>\n",
" <th>Country_Honduras</th>\n",
" <th>Country_Hong Kong (S.A.R.)</th>\n",
" <th>Country_Hungary</th>\n",
" <th>Country_Iceland</th>\n",
" <th>Country_India</th>\n",
" <th>Country_Indonesia</th>\n",
" <th>Country_Iran, Islamic Republic of...</th>\n",
" <th>Country_Iraq</th>\n",
" <th>Country_Ireland</th>\n",
" <th>Country_Israel</th>\n",
" <th>Country_Italy</th>\n",
" <th>Country_Jamaica</th>\n",
" <th>Country_Japan</th>\n",
" <th>Country_Jordan</th>\n",
" <th>Country_Kazakhstan</th>\n",
" <th>Country_Kenya</th>\n",
" <th>Country_Kuwait</th>\n",
" <th>Country_Kyrgyzstan</th>\n",
" <th>Country_Latvia</th>\n",
" <th>Country_Lebanon</th>\n",
" <th>Country_Lesotho</th>\n",
" <th>Country_Liberia</th>\n",
" <th>Country_Libyan Arab Jamahiriya</th>\n",
" <th>Country_Liechtenstein</th>\n",
" <th>Country_Lithuania</th>\n",
" <th>Country_Luxembourg</th>\n",
" <th>Country_Madagascar</th>\n",
" <th>Country_Malawi</th>\n",
" <th>Country_Malaysia</th>\n",
" <th>Country_Maldives</th>\n",
" <th>Country_Mali</th>\n",
" <th>Country_Malta</th>\n",
" <th>Country_Marshall Islands</th>\n",
" <th>Country_Mauritania</th>\n",
" <th>Country_Mauritius</th>\n",
" <th>Country_Mexico</th>\n",
" <th>Country_Micronesia, Federated States of...</th>\n",
" <th>Country_Monaco</th>\n",
" <th>Country_Mongolia</th>\n",
" <th>Country_Montenegro</th>\n",
" <th>Country_Morocco</th>\n",
" <th>Country_Mozambique</th>\n",
" <th>Country_Myanmar</th>\n",
" <th>Country_Namibia</th>\n",
" <th>Country_Nauru</th>\n",
" <th>Country_Nepal</th>\n",
" <th>Country_Netherlands</th>\n",
" <th>Country_New Zealand</th>\n",
" <th>Country_Nicaragua</th>\n",
" <th>Country_Niger</th>\n",
" <th>Country_Nigeria</th>\n",
" <th>Country_North Korea</th>\n",
" <th>Country_Norway</th>\n",
" <th>Country_Oman</th>\n",
" <th>Country_Other Country (Not Listed Above)</th>\n",
" <th>Country_Pakistan</th>\n",
" <th>Country_Palau</th>\n",
" <th>Country_Panama</th>\n",
" <th>Country_Paraguay</th>\n",
" <th>Country_Peru</th>\n",
" <th>Country_Philippines</th>\n",
" <th>Country_Poland</th>\n",
" <th>Country_Portugal</th>\n",
" <th>Country_Qatar</th>\n",
" <th>Country_Republic of Korea</th>\n",
" <th>Country_Republic of Moldova</th>\n",
" <th>Country_Romania</th>\n",
" <th>Country_Russian Federation</th>\n",
" <th>Country_Rwanda</th>\n",
" <th>Country_Saint Lucia</th>\n",
" <th>Country_San Marino</th>\n",
" <th>Country_Saudi Arabia</th>\n",
" <th>Country_Senegal</th>\n",
" <th>Country_Serbia</th>\n",
" <th>Country_Sierra Leone</th>\n",
" <th>Country_Singapore</th>\n",
" <th>Country_Slovakia</th>\n",
" <th>Country_Slovenia</th>\n",
" <th>Country_Solomon Islands</th>\n",
" <th>Country_Somalia</th>\n",
" <th>Country_South Africa</th>\n",
" <th>Country_South Korea</th>\n",
" <th>Country_Spain</th>\n",
" <th>Country_Sri Lanka</th>\n",
" <th>Country_Sudan</th>\n",
" <th>Country_Suriname</th>\n",
" <th>Country_Swaziland</th>\n",
" <th>Country_Sweden</th>\n",
" <th>Country_Switzerland</th>\n",
" <th>Country_Syrian Arab Republic</th>\n",
" <th>Country_Taiwan</th>\n",
" <th>Country_Tajikistan</th>\n",
" <th>Country_Thailand</th>\n",
" <th>Country_The former Yugoslav Republic of Macedonia</th>\n",
" <th>Country_Timor-Leste</th>\n",
" <th>Country_Togo</th>\n",
" <th>Country_Trinidad and Tobago</th>\n",
" <th>Country_Tunisia</th>\n",
" <th>Country_Turkey</th>\n",
" <th>Country_Turkmenistan</th>\n",
" <th>Country_Uganda</th>\n",
" <th>Country_Ukraine</th>\n",
" <th>Country_United Arab Emirates</th>\n",
" <th>Country_United Kingdom</th>\n",
" <th>Country_United Republic of Tanzania</th>\n",
" <th>Country_United States</th>\n",
" <th>Country_Uruguay</th>\n",
" <th>Country_Uzbekistan</th>\n",
" <th>Country_Venezuela, Bolivarian Republic of...</th>\n",
" <th>Country_Viet Nam</th>\n",
" <th>Country_Yemen</th>\n",
" <th>Country_Zambia</th>\n",
" <th>Country_Zimbabwe</th>\n",
" <th>Student_No</th>\n",
" <th>Student_Yes, full-time</th>\n",
" <th>Student_Yes, part-time</th>\n",
" <th>Employment_Employed full-time</th>\n",
" <th>Employment_Employed part-time</th>\n",
" <th>Employment_Independent contractor, freelancer, or self-employed</th>\n",
" <th>Employment_Not employed, and not looking for work</th>\n",
" <th>Employment_Not employed, but looking for work</th>\n",
" <th>Employment_Retired</th>\n",
" <th>FormalEducation_Associate degree</th>\n",
" <th>FormalEducation_Bachelor’s degree (BA, BS, B.Eng., etc.)</th>\n",
" <th>FormalEducation_I never completed any formal education</th>\n",
" <th>FormalEducation_Master’s degree (MA, MS, M.Eng., MBA, etc.)</th>\n",
" <th>FormalEducation_Other doctoral degree (Ph.D, Ed.D., etc.)</th>\n",
" <th>FormalEducation_Primary/elementary school</th>\n",
" <th>FormalEducation_Professional degree (JD, MD, etc.)</th>\n",
" <th>FormalEducation_Secondary school (e.g. American high school, German Realschule or Gymnasium, etc.)</th>\n",
" <th>FormalEducation_Some college/university study without earning a degree</th>\n",
" <th>UndergradMajor_A business discipline (ex. accounting, finance, marketing)</th>\n",
" <th>UndergradMajor_A health science (ex. nursing, pharmacy, radiology)</th>\n",
" <th>UndergradMajor_A humanities discipline (ex. literature, history, philosophy)</th>\n",
" <th>UndergradMajor_A natural science (ex. biology, chemistry, physics)</th>\n",
" <th>UndergradMajor_A social science (ex. anthropology, psychology, political science)</th>\n",
" <th>UndergradMajor_Another engineering discipline (ex. civil, electrical, mechanical)</th>\n",
" <th>UndergradMajor_Computer science, computer engineering, or software engineering</th>\n",
" <th>UndergradMajor_Fine arts or performing arts (ex. graphic design, music, studio art)</th>\n",
" <th>UndergradMajor_I never declared a major</th>\n",
" <th>UndergradMajor_Information systems, information technology, or system administration</th>\n",
" <th>UndergradMajor_Mathematics or statistics</th>\n",
" <th>UndergradMajor_Web development or web design</th>\n",
" <th>CompanySize_1,000 to 4,999 employees</th>\n",
" <th>CompanySize_10 to 19 employees</th>\n",
" <th>CompanySize_10,000 or more employees</th>\n",
" <th>CompanySize_100 to 499 employees</th>\n",
" <th>CompanySize_20 to 99 employees</th>\n",
" <th>CompanySize_5,000 to 9,999 employees</th>\n",
" <th>CompanySize_500 to 999 employees</th>\n",
" <th>CompanySize_Fewer than 10 employees</th>\n",
" <th>YearsCoding_0-2 years</th>\n",
" <th>YearsCoding_12-14 years</th>\n",
" <th>YearsCoding_15-17 years</th>\n",
" <th>YearsCoding_18-20 years</th>\n",
" <th>YearsCoding_21-23 years</th>\n",
" <th>YearsCoding_24-26 years</th>\n",
" <th>YearsCoding_27-29 years</th>\n",
" <th>YearsCoding_3-5 years</th>\n",
" <th>YearsCoding_30 or more years</th>\n",
" <th>YearsCoding_6-8 years</th>\n",
" <th>YearsCoding_9-11 years</th>\n",
" <th>YearsCodingProf_0-2 years</th>\n",
" <th>YearsCodingProf_12-14 years</th>\n",
" <th>YearsCodingProf_15-17 years</th>\n",
" <th>YearsCodingProf_18-20 years</th>\n",
" <th>YearsCodingProf_21-23 years</th>\n",
" <th>YearsCodingProf_24-26 years</th>\n",
" <th>YearsCodingProf_27-29 years</th>\n",
" <th>YearsCodingProf_3-5 years</th>\n",
" <th>YearsCodingProf_30 or more years</th>\n",
" <th>YearsCodingProf_6-8 years</th>\n",
" <th>YearsCodingProf_9-11 years</th>\n",
" <th>JobSatisfaction_Extremely dissatisfied</th>\n",
" <th>JobSatisfaction_Extremely satisfied</th>\n",
" <th>JobSatisfaction_Moderately dissatisfied</th>\n",
" <th>JobSatisfaction_Moderately satisfied</th>\n",
" <th>JobSatisfaction_Neither satisfied nor dissatisfied</th>\n",
" <th>JobSatisfaction_Slightly dissatisfied</th>\n",
" <th>JobSatisfaction_Slightly satisfied</th>\n",
" <th>CareerSatisfaction_Extremely dissatisfied</th>\n",
" <th>CareerSatisfaction_Extremely satisfied</th>\n",
" <th>CareerSatisfaction_Moderately dissatisfied</th>\n",
" <th>CareerSatisfaction_Moderately satisfied</th>\n",
" <th>CareerSatisfaction_Neither satisfied nor dissatisfied</th>\n",
" <th>CareerSatisfaction_Slightly dissatisfied</th>\n",
" <th>CareerSatisfaction_Slightly satisfied</th>\n",
" <th>HopeFiveYears_Doing the same work</th>\n",
" <th>HopeFiveYears_Retirement</th>\n",
" <th>HopeFiveYears_Working as a founder or co-founder of my own company</th>\n",
" <th>HopeFiveYears_Working as a product manager or project manager</th>\n",
" <th>HopeFiveYears_Working as an engineering manager or other functional manager</th>\n",
" <th>HopeFiveYears_Working in a career completely unrelated to software development</th>\n",
" <th>HopeFiveYears_Working in a different or more specialized technical role than the one I'm in now</th>\n",
" <th>JobSearchStatus_I am actively looking for a job</th>\n",
" <th>JobSearchStatus_I am not interested in new job opportunities</th>\n",
" <th>JobSearchStatus_I’m not actively looking, but I am open to new opportunities</th>\n",
" <th>LastNewJob_Between 1 and 2 years ago</th>\n",
" <th>LastNewJob_Between 2 and 4 years ago</th>\n",
" <th>LastNewJob_I've never had a job</th>\n",
" <th>LastNewJob_Less than a year ago</th>\n",
" <th>LastNewJob_More than 4 years ago</th>\n",
" <th>UpdateCV_A friend told me about a job opportunity</th>\n",
" <th>UpdateCV_A recruiter contacted me</th>\n",
" <th>UpdateCV_I did not receive an expected change in compensation</th>\n",
" <th>UpdateCV_I had a negative experience or interaction at work</th>\n",
" <th>UpdateCV_I received bad news about the future of my company or department</th>\n",
" <th>UpdateCV_I received negative feedback on my job performance</th>\n",
" <th>UpdateCV_I saw an employer’s advertisement</th>\n",
" <th>UpdateCV_My job status or other personal status changed</th>\n",
" <th>TimeFullyProductive_Less than a month</th>\n",
" <th>TimeFullyProductive_More than a year</th>\n",
" <th>TimeFullyProductive_Nine months to a year</th>\n",
" <th>TimeFullyProductive_One to three months</th>\n",
" <th>TimeFullyProductive_Six to nine months</th>\n",
" <th>TimeFullyProductive_Three to six months</th>\n",
" <th>TimeAfterBootcamp_Four to six months</th>\n",
" <th>TimeAfterBootcamp_I already had a full-time job as a developer when I began the program</th>\n",
" <th>TimeAfterBootcamp_I haven’t gotten a developer job</th>\n",
" <th>TimeAfterBootcamp_Immediately after graduating</th>\n",
" <th>TimeAfterBootcamp_Less than a month</th>\n",
" <th>TimeAfterBootcamp_Longer than a year</th>\n",
" <th>TimeAfterBootcamp_One to three months</th>\n",
" <th>TimeAfterBootcamp_Six months to a year</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>64269</th>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>43968</th>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>93093</th>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10584</th>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>87164</th>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" <td>0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Hobby_No Hobby_Yes OpenSource_No OpenSource_Yes \\\n",
"64269 0 1 1 0 \n",
"43968 0 1 0 1 \n",
"93093 0 1 1 0 \n",
"10584 0 1 0 1 \n",
"87164 1 0 1 0 \n",
"\n",
" Country_Afghanistan Country_Albania Country_Algeria Country_Andorra \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Angola Country_Antigua and Barbuda Country_Argentina \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Armenia Country_Australia Country_Austria \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Azerbaijan Country_Bahamas Country_Bahrain \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Bangladesh Country_Barbados Country_Belarus Country_Belgium \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Belize Country_Benin Country_Bhutan Country_Bolivia \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Bosnia and Herzegovina Country_Botswana Country_Brazil \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 1 \n",
"\n",
" Country_Brunei Darussalam Country_Bulgaria Country_Burkina Faso \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Burundi Country_Cambodia Country_Cameroon Country_Canada \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Cape Verde Country_Central African Republic Country_Chile \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_China Country_Colombia Country_Congo, Republic of the... \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Costa Rica Country_Croatia Country_Cuba Country_Cyprus \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Czech Republic Country_Côte d'Ivoire \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Democratic People's Republic of Korea \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" Country_Democratic Republic of the Congo Country_Denmark \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Djibouti Country_Dominica Country_Dominican Republic \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Ecuador Country_Egypt Country_El Salvador Country_Eritrea \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Estonia Country_Ethiopia Country_Fiji Country_Finland \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_France Country_Gabon Country_Gambia Country_Georgia \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Germany Country_Ghana Country_Greece Country_Grenada \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Guatemala Country_Guinea Country_Guinea-Bissau \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Guyana Country_Haiti Country_Honduras \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Hong Kong (S.A.R.) Country_Hungary Country_Iceland \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 1 \n",
"87164 0 0 0 \n",
"\n",
" Country_India Country_Indonesia Country_Iran, Islamic Republic of... \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Iraq Country_Ireland Country_Israel Country_Italy \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Jamaica Country_Japan Country_Jordan Country_Kazakhstan \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Kenya Country_Kuwait Country_Kyrgyzstan Country_Latvia \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Lebanon Country_Lesotho Country_Liberia \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Libyan Arab Jamahiriya Country_Liechtenstein \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Lithuania Country_Luxembourg Country_Madagascar \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Malawi Country_Malaysia Country_Maldives Country_Mali \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Malta Country_Marshall Islands Country_Mauritania \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Mauritius Country_Mexico \\\n",
"64269 0 1 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Micronesia, Federated States of... Country_Monaco \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Mongolia Country_Montenegro Country_Morocco \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Mozambique Country_Myanmar Country_Namibia Country_Nauru \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Nepal Country_Netherlands Country_New Zealand \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Nicaragua Country_Niger Country_Nigeria Country_North Korea \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Norway Country_Oman Country_Other Country (Not Listed Above) \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Pakistan Country_Palau Country_Panama Country_Paraguay \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Peru Country_Philippines Country_Poland Country_Portugal \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 1 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Qatar Country_Republic of Korea Country_Republic of Moldova \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Romania Country_Russian Federation Country_Rwanda \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Saint Lucia Country_San Marino Country_Saudi Arabia \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Senegal Country_Serbia Country_Sierra Leone \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Singapore Country_Slovakia Country_Slovenia \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Solomon Islands Country_Somalia Country_South Africa \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_South Korea Country_Spain Country_Sri Lanka Country_Sudan \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_Suriname Country_Swaziland Country_Sweden \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Switzerland Country_Syrian Arab Republic Country_Taiwan \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Tajikistan Country_Thailand \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_The former Yugoslav Republic of Macedonia Country_Timor-Leste \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Togo Country_Trinidad and Tobago Country_Tunisia \\\n",
"64269 0 0 0 \n",
"43968 0 0 0 \n",
"93093 0 0 0 \n",
"10584 0 0 0 \n",
"87164 0 0 0 \n",
"\n",
" Country_Turkey Country_Turkmenistan Country_Uganda Country_Ukraine \\\n",
"64269 0 0 0 0 \n",
"43968 0 0 0 0 \n",
"93093 0 0 0 0 \n",
"10584 0 0 0 0 \n",
"87164 0 0 0 0 \n",
"\n",
" Country_United Arab Emirates Country_United Kingdom \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_United Republic of Tanzania Country_United States \\\n",
"64269 0 0 \n",
"43968 0 1 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Uruguay Country_Uzbekistan \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Venezuela, Bolivarian Republic of... Country_Viet Nam \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Country_Yemen Country_Zambia Country_Zimbabwe Student_No \\\n",
"64269 0 0 0 1 \n",
"43968 0 0 0 1 \n",
"93093 0 0 0 1 \n",
"10584 0 0 0 1 \n",
"87164 0 0 0 1 \n",
"\n",
" Student_Yes, full-time Student_Yes, part-time \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" Employment_Employed full-time Employment_Employed part-time \\\n",
"64269 1 0 \n",
"43968 1 0 \n",
"93093 1 0 \n",
"10584 1 0 \n",
"87164 0 0 \n",
"\n",
" Employment_Independent contractor, freelancer, or self-employed \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" Employment_Not employed, and not looking for work \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" Employment_Not employed, but looking for work Employment_Retired \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 1 0 \n",
"\n",
" FormalEducation_Associate degree \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_Bachelor’s degree (BA, BS, B.Eng., etc.) \\\n",
"64269 1 \n",
"43968 1 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_I never completed any formal education \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_Master’s degree (MA, MS, M.Eng., MBA, etc.) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 1 \n",
"10584 0 \n",
"87164 1 \n",
"\n",
" FormalEducation_Other doctoral degree (Ph.D, Ed.D., etc.) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_Primary/elementary school \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_Professional degree (JD, MD, etc.) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_Secondary school (e.g. American high school, German Realschule or Gymnasium, etc.) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" FormalEducation_Some college/university study without earning a degree \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 1 \n",
"87164 0 \n",
"\n",
" UndergradMajor_A business discipline (ex. accounting, finance, marketing) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_A health science (ex. nursing, pharmacy, radiology) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_A humanities discipline (ex. literature, history, philosophy) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_A natural science (ex. biology, chemistry, physics) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_A social science (ex. anthropology, psychology, political science) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_Another engineering discipline (ex. civil, electrical, mechanical) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_Computer science, computer engineering, or software engineering \\\n",
"64269 1 \n",
"43968 1 \n",
"93093 1 \n",
"10584 1 \n",
"87164 1 \n",
"\n",
" UndergradMajor_Fine arts or performing arts (ex. graphic design, music, studio art) \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_I never declared a major \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_Information systems, information technology, or system administration \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_Mathematics or statistics \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UndergradMajor_Web development or web design \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" CompanySize_1,000 to 4,999 employees CompanySize_10 to 19 employees \\\n",
"64269 0 0 \n",
"43968 1 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" CompanySize_10,000 or more employees CompanySize_100 to 499 employees \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" CompanySize_20 to 99 employees CompanySize_5,000 to 9,999 employees \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 1 0 \n",
"87164 0 0 \n",
"\n",
" CompanySize_500 to 999 employees CompanySize_Fewer than 10 employees \\\n",
"64269 1 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCoding_0-2 years YearsCoding_12-14 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCoding_15-17 years YearsCoding_18-20 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 1 0 \n",
"87164 1 0 \n",
"\n",
" YearsCoding_21-23 years YearsCoding_24-26 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCoding_27-29 years YearsCoding_3-5 years \\\n",
"64269 0 0 \n",
"43968 0 1 \n",
"93093 0 1 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCoding_30 or more years YearsCoding_6-8 years \\\n",
"64269 0 1 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCoding_9-11 years YearsCodingProf_0-2 years \\\n",
"64269 0 0 \n",
"43968 0 1 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCodingProf_12-14 years YearsCodingProf_15-17 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 1 0 \n",
"87164 0 0 \n",
"\n",
" YearsCodingProf_18-20 years YearsCodingProf_21-23 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCodingProf_24-26 years YearsCodingProf_27-29 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" YearsCodingProf_3-5 years YearsCodingProf_30 or more years \\\n",
"64269 1 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 1 0 \n",
"\n",
" YearsCodingProf_6-8 years YearsCodingProf_9-11 years \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" JobSatisfaction_Extremely dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSatisfaction_Extremely satisfied \\\n",
"64269 0 \n",
"43968 1 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSatisfaction_Moderately dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSatisfaction_Moderately satisfied \\\n",
"64269 1 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSatisfaction_Neither satisfied nor dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSatisfaction_Slightly dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 1 \n",
"87164 0 \n",
"\n",
" JobSatisfaction_Slightly satisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" CareerSatisfaction_Extremely dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" CareerSatisfaction_Extremely satisfied \\\n",
"64269 1 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" CareerSatisfaction_Moderately dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 1 \n",
"\n",
" CareerSatisfaction_Moderately satisfied \\\n",
"64269 0 \n",
"43968 1 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" CareerSatisfaction_Neither satisfied nor dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" CareerSatisfaction_Slightly dissatisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 1 \n",
"87164 0 \n",
"\n",
" CareerSatisfaction_Slightly satisfied \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" HopeFiveYears_Doing the same work HopeFiveYears_Retirement \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 0 0 \n",
"\n",
" HopeFiveYears_Working as a founder or co-founder of my own company \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" HopeFiveYears_Working as a product manager or project manager \\\n",
"64269 1 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" HopeFiveYears_Working as an engineering manager or other functional manager \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" HopeFiveYears_Working in a career completely unrelated to software development \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" HopeFiveYears_Working in a different or more specialized technical role than the one I'm in now \\\n",
"64269 0 \n",
"43968 1 \n",
"93093 0 \n",
"10584 1 \n",
"87164 1 \n",
"\n",
" JobSearchStatus_I am actively looking for a job \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSearchStatus_I am not interested in new job opportunities \\\n",
"64269 0 \n",
"43968 1 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" JobSearchStatus_I’m not actively looking, but I am open to new opportunities \\\n",
"64269 1 \n",
"43968 0 \n",
"93093 0 \n",
"10584 1 \n",
"87164 1 \n",
"\n",
" LastNewJob_Between 1 and 2 years ago \\\n",
"64269 1 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" LastNewJob_Between 2 and 4 years ago LastNewJob_I've never had a job \\\n",
"64269 0 0 \n",
"43968 0 0 \n",
"93093 0 0 \n",
"10584 0 0 \n",
"87164 1 0 \n",
"\n",
" LastNewJob_Less than a year ago LastNewJob_More than 4 years ago \\\n",
"64269 0 0 \n",
"43968 1 0 \n",
"93093 0 0 \n",
"10584 0 1 \n",
"87164 0 0 \n",
"\n",
" UpdateCV_A friend told me about a job opportunity \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 1 \n",
"\n",
" UpdateCV_A recruiter contacted me \\\n",
"64269 1 \n",
"43968 1 \n",
"93093 0 \n",
"10584 1 \n",
"87164 0 \n",
"\n",
" UpdateCV_I did not receive an expected change in compensation \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UpdateCV_I had a negative experience or interaction at work \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UpdateCV_I received bad news about the future of my company or department \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UpdateCV_I received negative feedback on my job performance \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UpdateCV_I saw an employer’s advertisement \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" UpdateCV_My job status or other personal status changed \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeFullyProductive_Less than a month \\\n",
"64269 1 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeFullyProductive_More than a year \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeFullyProductive_Nine months to a year \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeFullyProductive_One to three months \\\n",
"64269 0 \n",
"43968 1 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeFullyProductive_Six to nine months \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeFullyProductive_Three to six months \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 1 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_Four to six months \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_I already had a full-time job as a developer when I began the program \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_I haven’t gotten a developer job \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_Immediately after graduating \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_Less than a month \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_Longer than a year \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_One to three months \\\n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 \n",
"\n",
" TimeAfterBootcamp_Six months to a year \n",
"64269 0 \n",
"43968 0 \n",
"93093 0 \n",
"10584 0 \n",
"87164 0 "
]
},
"execution_count": 83,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"train.head()"
]
},
{
"cell_type": "code",
"execution_count": 84,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/roman/workspace/keras-playground/env/lib/python3.6/site-packages/sklearn/cross_validation.py:41: DeprecationWarning: This module was deprecated in version 0.18 in favor of the model_selection module into which all the refactored classes and functions are moved. Also note that the interface of the new CV iterators are different from that of this module. This module will be removed in 0.20.\n",
" \"This module will be removed in 0.20.\", DeprecationWarning)\n"
]
}
],
"source": [
"from sklearn.cross_validation import train_test_split"
]
},
{
"cell_type": "code",
"execution_count": 86,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array(['Extremely satisfied', 'Moderately dissatisfied',\n",
" 'Moderately satisfied', 'Neither satisfied nor dissatisfied',\n",
" 'Slightly satisfied', nan, 'Slightly dissatisfied',\n",
" 'Extremely dissatisfied'], dtype=object)"
]
},
"execution_count": 86,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df.JobSatisfaction.unique()"
]
},
{
"cell_type": "code",
"execution_count": 142,
"metadata": {},
"outputs": [],
"source": [
"satistaction_levels = {\n",
" 'Extremely satisfied': 0.99,\n",
" 'Moderately satisfied': .8,\n",
" 'Slightly satisfied': .6,\n",
" 'Neither satisfied nor dissatisfied': 0.5,\n",
" 'Slightly dissatisfied': 0.4,\n",
" 'Moderately dissatisfied': 0.2,\n",
" 'Extremely dissatisfied': 0,\n",
" np.nan: np.nan,\n",
"}\n",
"y = df.JobSatisfaction.apply(lambda v: satistaction_levels[v]).dropna()"
]
},
{
"cell_type": "code",
"execution_count": 143,
"metadata": {},
"outputs": [],
"source": [
"X = df2.iloc[y.index]"
]
},
{
"cell_type": "code",
"execution_count": 144,
"metadata": {},
"outputs": [],
"source": [
"X_train, X_test, y_train, y_test = train_test_split(X,y,test_size=0.2)"
]
},
{
"cell_type": "code",
"execution_count": 145,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Epoch 1/5\n",
"55420/55420 [==============================] - 2s 32us/step - loss: 0.0000e+00 - acc: 0.0000e+00\n",
"Epoch 2/5\n",
"55420/55420 [==============================] - 2s 32us/step - loss: 0.0000e+00 - acc: 0.0000e+00\n",
"Epoch 3/5\n",
"55420/55420 [==============================] - 2s 32us/step - loss: 0.0000e+00 - acc: 0.0000e+00\n",
"Epoch 4/5\n",
"55420/55420 [==============================] - 2s 33us/step - loss: 0.0000e+00 - acc: 0.0000e+00\n",
"Epoch 5/5\n",
"55420/55420 [==============================] - 2s 37us/step - loss: 0.0000e+00 - acc: 0.0000e+00\n"
]
},
{
"data": {
"text/plain": [
"<keras.callbacks.History at 0x11ad00c50>"
]
},
"execution_count": 145,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from keras.models import Sequential\n",
"from keras.layers import Dense\n",
"\n",
"\n",
"model = Sequential()\n",
"model.add(Dense(units=64, activation='relu', input_dim=X_train.shape[1]))\n",
"model.add(Dense(units=1, activation='softmax'))\n",
"\n",
"model.compile(loss='sparse_categorical_crossentropy',\n",
" optimizer='sgd',\n",
" metrics=['accuracy'])\n",
"\n",
"model.fit(X_train.values, y_train.values, epochs=5, batch_size=32)"
]
},
{
"cell_type": "code",
"execution_count": 147,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"13856/13856 [==============================] - 0s 9us/step\n"
]
}
],
"source": [
"loss_and_metrics = model.evaluate(X_test, y_test, batch_size=128)"
]
},
{
"cell_type": "code",
"execution_count": 148,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"[0.0, 0.0]"
]
},
"execution_count": 148,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"loss_and_metrics"
]
},
{
"cell_type": "code",
"execution_count": 149,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\u001b[0;31mSignature:\u001b[0m \u001b[0mmodel\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mevaluate\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0my\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mbatch_size\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mverbose\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msample_weight\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msteps\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mDocstring:\u001b[0m\n",
"Returns the loss value & metrics values for the model in test mode.\n",
"\n",
"Computation is done in batches.\n",
"\n",
"# Arguments\n",
" x: Numpy array of test data (if the model has a single input),\n",
" or list of Numpy arrays (if the model has multiple inputs).\n",
" If input layers in the model are named, you can also pass a\n",
" dictionary mapping input names to Numpy arrays.\n",
" `x` can be `None` (default) if feeding from\n",
" framework-native tensors (e.g. TensorFlow data tensors).\n",
" y: Numpy array of target (label) data\n",
" (if the model has a single output),\n",
" or list of Numpy arrays (if the model has multiple outputs).\n",
" If output layers in the model are named, you can also pass a\n",
" dictionary mapping output names to Numpy arrays.\n",
" `y` can be `None` (default) if feeding from\n",
" framework-native tensors (e.g. TensorFlow data tensors).\n",
" batch_size: Integer or `None`.\n",
" Number of samples per evaluation step.\n",
" If unspecified, `batch_size` will default to 32.\n",
" verbose: 0 or 1. Verbosity mode.\n",
" 0 = silent, 1 = progress bar.\n",
" sample_weight: Optional Numpy array of weights for\n",
" the test samples, used for weighting the loss function.\n",
" You can either pass a flat (1D)\n",
" Numpy array with the same length as the input samples\n",
" (1:1 mapping between weights and samples),\n",
" or in the case of temporal data,\n",
" you can pass a 2D array with shape\n",
" `(samples, sequence_length)`,\n",
" to apply a different weight to every timestep of every sample.\n",
" In this case you should make sure to specify\n",
" `sample_weight_mode=\"temporal\"` in `compile()`.\n",
" steps: Integer or `None`.\n",
" Total number of steps (batches of samples)\n",
" before declaring the evaluation round finished.\n",
" Ignored with the default value of `None`.\n",
"\n",
"# Returns\n",
" Scalar test loss (if the model has a single output and no metrics)\n",
" or list of scalars (if the model has multiple outputs\n",
" and/or metrics). The attribute `model.metrics_names` will give you\n",
" the display labels for the scalar outputs.\n",
"\u001b[0;31mFile:\u001b[0m ~/workspace/keras-playground/env/lib/python3.6/site-packages/keras/engine/training.py\n",
"\u001b[0;31mType:\u001b[0m method\n"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"?model.evaluate"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.2"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment