Created
May 20, 2013 16:10
-
-
Save krusty/5613281 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dict_to_set (dict_): | |
return set([(k, v) for k, v in dict_.iteritems()]) | |
GENDER = {'M': 'Male', | |
'F': 'Female', | |
'U': 'Undefined'} | |
MEMBERSHIP_TYPE = {'1': 'Full member (age 50 or older)'} | |
MEMBERSHIP_STATUS = {'0': 'Full active member', '5': 'Expired'} | |
INCOME_RANGE = {'1': 'Less than $15,000', | |
'2': '$15,000 - $19,999', | |
'3': '$20,000 - $29,999', | |
'4': '$30,000 - $39,999', | |
'5': '$40,000 - $49,999', | |
'6': '$50,000 - $59,999', | |
'7': '$60,000 - $69,999', | |
'8': '$70,000 - $79,999', | |
'9': '$80,000 - $89,999', | |
'A': '$90,000 - $99,999', | |
'B': '$100,000 - $124,999', | |
'C': '$125,000 - $149,999', | |
'D': 'Greater than $149,999'} | |
NETWORTH_RANGE = {'1': 'Less than or equal to $0', | |
'2': '$1 - $4,999', | |
'3': '$5,000 - $9,999', | |
'4': '$10,000 - $24,999', | |
'5': '$25,000 - $49,999', | |
'6': '$50,000 - $99,999', | |
'7': '$100,000 - $249,999', | |
'8': '$250,000 - $499,999', | |
'9': '$500,000 - $999,999', | |
'A': '$1,000,000 - $1,999,999', | |
'B': '$2,000,000 +'} | |
LIFESTAGE_SEGMENT = {'1': 'True Blue Families', | |
'2': 'Comfortable Nests', | |
'3': 'Blue Collar Backbone', | |
'4': 'Working & On the Go', | |
'5': 'Transitioning Comfortably', | |
'6': 'Limited Resource Retirees', | |
'7': 'Engaged Golden Years', | |
'8': 'Reflection Years'} | |
STATE = {"AL": "Alabama", | |
"AK": "Alaska", | |
"AZ": "Arizona", | |
"AR": "Arkansas", | |
"CA": "California", | |
"CO": "Colorado", | |
"CT": "Connecticut", | |
"DE": "Delaware", | |
"DC": "District of Columbia", | |
"FL": "Florida", | |
"GA": "Georgia", | |
"HI": "Hawaii", | |
"ID": "Idaho", | |
"IL": "Illinois", | |
"IN": "Indiana", | |
"IA": "Iowa", | |
"KS": "Kansas", | |
"KY": "Kentucky", | |
"LA": "Louisiana", | |
"ME": "Maine", | |
"MT": "Montana", | |
"NE": "Nebraska", | |
"NV": "Nevada", | |
"NH": "New Hampshire", | |
"NJ": "New Jersey", | |
"NM": "New Mexico", | |
"NY": "New York", | |
"NC": "North Carolina", | |
"ND": "North Dakota", | |
"OH": "Ohio", | |
"OK": "Oklahoma", | |
"OR": "Oregon", | |
"MD": "Maryland", | |
"MA": "Massachusetts", | |
"MI": "Michigan", | |
"MN": "Minnesota", | |
"MS": "Mississippi", | |
"MO": "Missouri", | |
"PA": "Pennsylvania", | |
"RI": "Rhode Island", | |
"SC": "South Carolina", | |
"SD": "South Dakota", | |
"TN": "Tennessee", | |
"TX": "Texas", | |
"UT": "Utah", | |
"VT": "Vermont", | |
"VA": "Virginia", | |
"WA": "Washington", | |
"WV": "West Virginia", | |
"WI": "Wisconsin", | |
"WY": "Wyoming"} | |
INVESTMENT_SCORE = {"1": "1", "2": "2", "3": "3", "4": "4", "5": "5", | |
"6": "6", "7": "7", "8": "8", "9": "9", "10": "10", | |
"11": "11", "12": "12", "13": "13", "14": "14", "15": "15", | |
"16": "16", "17": "17", "18": "18", "19": "19", "20": "20"} | |
CHILDREN_SCORE = {"1": "1", "2": "2", "3": "3", "4": "4", "5": "5", | |
"6": "6", "7": "7", "8": "8", "9": "9", "10": "10", | |
"11": "11", "12": "12", "13": "13", "14": "14", "15": "15", | |
"16": "16", "17": "17", "18": "18", "19": "19", "20": "20"} | |
WEBUSE_SCORE = {"1": "1", "2": "2", "3": "3", "4": "4", "5": "5", | |
"6": "6", "7": "7", "8": "8", "9": "9", "10": "10", | |
"11": "11", "12": "12", "13": "13", "14": "14", "15": "15", | |
"16": "16", "17": "17", "18": "18", "19": "19", "20": "20"} | |
# This dictionary gets returned by choices resource | |
CHOICES = { | |
'gender': GENDER, | |
'membership_type': MEMBERSHIP_TYPE, | |
'membership_status': MEMBERSHIP_STATUS, | |
'income_range': INCOME_RANGE, | |
'networth_range': NETWORTH_RANGE, | |
'lifestage_segment': LIFESTAGE_SEGMENT, | |
'state': STATE, | |
'investment_score': INVESTMENT_SCORE, | |
'children_score': CHILDREN_SCORE, | |
'webuse_score': WEBUSE_SCORE | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment