Skip to content

Instantly share code, notes, and snippets.

@punkrockpolly
Created March 18, 2015 16:56
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 punkrockpolly/4a95712300b1ee8dbf7a to your computer and use it in GitHub Desktop.
Save punkrockpolly/4a95712300b1ee8dbf7a to your computer and use it in GitHub Desktop.
demo_buckets = {
'politics1': ['active_percent',
'somewhat_active_percent',
'inactive_percent'],
'politics2': ['independent_percent',
'democrat_percent',
'republican_percent'],
'gender': ['female_percent',
'male_percent'],
'kids': ['has_kids_percent',
'no_kids_percent'],
'race': ['african_am_percent',
'asian_percent',
'caucasian_percent',
'hispanic_percent',
'other_percent'],
'age1': ['age_14_19_percent',
'age_20_29_percent',
'age_30_39_percent',
'age_40_49_percent',
'age_50_59_percent',
'age_over_60_percent'],
'age2': ['age_under_18_percent',
'age_18_24_percent',
'age_25_34_percent',
'age_35_44_percent',
'age_45_54_percent',
'age_55_64_percent',
'age_over_65_percent'],
'ageg1': ['female_14_19_percent',
'female_20_29_percent',
'female_30_39_percent',
'female_40_49_percent',
'female_50_59_percent',
'female_over_60_percent',
'male_14_19_percent',
'male_20_29_percent',
'male_30_39_percent',
'male_40_49_percent',
'male_50_59_percent',
'male_over_60_percent'],
'ageg2': ['female_under_18_percent',
'female_18_24_percent',
'female_25_34_percent',
'female_35_44_percent',
'female_45_54_percent',
'female_55_64_percent',
'female_over_65_percent',
'male_under_18_percent',
'male_18_24_percent',
'male_25_34_percent',
'male_35_44_percent',
'male_45_54_percent',
'male_55_64_percent',
'male_over_65_percent'],
'edu': ['no_college_percent',
'college_percent',
'grad_school_percent'],
'incomegb': ['gb_income_0_30k_percent',
'gb_income_30_50k_percent',
'gb_income_50_70k_percent',
'gb_income_over_70k_percent'],
'incomeus': ['us_income_0_50k_percent',
'us_income_100_150k_percent',
'us_income_50_100k_percent',
'us_income_over_150k_percent']
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment