Skip to content

Instantly share code, notes, and snippets.

@hygull
Last active November 20, 2018 05:28
Show Gist options
  • Save hygull/46bd0e0c7fac6a97e616864087daf987 to your computer and use it in GitHub Desktop.
Save hygull/46bd0e0c7fac6a97e616864087daf987 to your computer and use it in GitHub Desktop.
pandas, data science practice using a simple csv file, use of loc and groupby (little use, you will see more examples in a gist created after this)
Country City Education Incom Gender
0 United States New York High School 100000 Female
1 United States New York High School 105000 Male
2 United States New York High School 112000 Female
3 United States New York BA 150000 Male
4 United States Las Vegas BA 155000 Female
5 United States Las Vegas BA 160000 Male
6 United States Las Vegas PHD 190000 Female
7 United States Miami PHD 205521 Male
8 United States Miami PHD 210050 Female
9 United Kingdome London High School 100000 Female
10 United Kingdome London High School 105000 Male
11 United Kingdome London High School 112000 Female
12 United Kingdome London BA 150000 Male
13 United Kingdome London BA 155000 Female
14 United Kingdome London BA 160000 Male
15 United Kingdome Manchester PHD 190000 Female
16 United Kingdome Manchester PHD 205521 Male
17 United Kingdome Manchester PHD 210050 Female
18 United Kingdome Manchester High School 100000 Female
19 United Kingdome Liverpol High School 105000 Male
20 United Kingdome Liverpol PHD 112000 Female
21 United Kingdome Liverpol PHD 150000 Male
22 United Kingdome Birmingham PHD 155000 Female
23 United Kingdome Birmingham BA 160000 Male
24 France Paris High School 100000 Female
25 France Paris High School 105000 Male
26 France Paris BA 112000 Female
27 France Paris BA 150000 Male
28 France Nice BA 155000 Female
29 France Nice PHD 160000 Male
30 France Nice PHD 190000 Female
31 France Nice PHD 205521 Male
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment