Skip to content

Instantly share code, notes, and snippets.

@parulnith
Last active June 10, 2021 05:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parulnith/780ca214dc93ecfec25fa9cd10954d52 to your computer and use it in GitHub Desktop.
Save parulnith/780ca214dc93ecfec25fa9cd10954d52 to your computer and use it in GitHub Desktop.
df = pd.DataFrame({
'Gender' : ['Female', 'Male', 'Male', 'Male', 'Male', 'Female', 'Male', 'Male','Male', 'Female','Male', 'Female'],
'Age' : [41, 49, 37, 33, 27, 32, 59, 30, 38, 36, 35, 29],
'EducationField': ['Life Sciences', 'Engineering', 'Life Sciences', 'Life Sciences', 'Medical', 'Life Sciences', 'Life Sciences', 'Life Sciences', 'Engineering', 'Medical', 'Life Sciences', 'Life Sciences'],
'MonthlyIncome': [5993, 5130, 2090, 2909, 3468, 3068, 2670, 2693, 9526, 5237, 2426, 4193]
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment