-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to filter and classify the site as a food bank or soup kitchen based on taxonomy and description #42
base: main
Are you sure you want to change the base?
Conversation
This adds a script that filters the site data based on the taxonomy. However, the data provided does not have any of the taxonomies given. A regex is being used instead to filter where a site has no valid taxonomies.
TODO:
|
Here are the taxonomies present in the data: ['1 or more persons 2 years or younger',
'AIDS/HIV',
'Active Military',
'Adults',
'Adults With Disabilities/Health Conditions',
'Agencies/Organizations as Recipients',
'Air Force Personnel',
'Army Personnel',
'At Risk Adults',
'At Risk Families',
'At Risk for Homelessness',
'Autism Spectrum Disorder',
'Bladder Cancer',
'Bone Cancer',
'Breast Cancer',
'Breastfeeding Women',
'COVID-19',
'Cancer',
'Cerebral Palsy',
'Cervical Cancer',
'Children and Youth With Disabilities/Health Conditions',
'Children of Military/Active Duty Personnel',
'Chronically Homeless',
'Coast Guard Personnel',
'College/University Students',
'Colorectal Cancer',
'Combat Veterans',
'Court Ordered Individuals',
'Deployed Military',
'Developmental Disabilities',
'E-5 and below (paygrade)',
'E-6 and below (paygrade)',
'Elementary School Students',
'Employed',
'Epilepsy',
'Evicted People',
'Families With Adolescents',
'Families With Children',
'Families With Infants/Toddlers',
'Families of Military Personnel/Veterans',
'Female Veterans',
'Food Stamps/SNAP Recipients',
'Former Foster Children',
'Foster Children',
'Frail Elderly',
'Graduate Students',
'Grandparents',
'Gulf War I Veterans',
'Health Issues',
'High School Students',
'Homebound',
'Homeless College/University Students',
'Homeless Families',
'Homeless Men',
'Homeless People',
'Homeless Veterans',
'Homeless Women',
'Homeless Youth',
'Human Trafficking Issues',
'Hunger/Food Issues',
'Immigrants',
'Infants/Toddlers',
'Intellectual Disabilities',
'Kindergarten Students',
'Kinship Caregivers',
'Korean Conflict Veterans',
'Liver Cancer',
'Low Income',
'Lung Cancer',
'Marine Corps Personnel',
'Men',
'Middle School Students',
'Migrants',
'Military Reserves',
'National Guard Personnel',
'Native American Community',
'Navy Personnel',
'Neurological Impairments',
'New Parents',
'Older Adults',
'Older Adults 50 and over',
'Older Adults 55 and over',
'Older Adults 60 and over',
'Older Adults 62 and over',
'Older Adults 65 and over',
'Operation Enduring Freedom Veterans',
'Operation Iraqi Freedom Veterans',
'Operation New Dawn Veterans',
'Ovarian Cancer',
'Pancreatic Cancer',
'Parents With Disabilities/Health Conditions',
'People With Disabilities/Health Conditions',
'Post 9/11 (OIF/OEF)',
'Postpartum Mothers',
'Pregnant Women',
'Preschool Age Children',
'Preschool Students',
'Prostate Cancer',
'Refugees/Entrants/Asylees',
'Renal Cancer',
'Retired Military',
'SSI Recipients',
'Service Connected Disability',
'Skilled Nursing Facility Discharged Client',
'Skin Cancer',
'Spouses of Military/Active Duty Personnel',
'Stomach Cancer',
'Temporary Financial Hardship',
'Terminal Illness',
'Testicular Cancer',
'Thyroid Cancer',
'Undergraduates',
'Undocumented People',
'Unemployed Individuals',
'Union Members',
'Uterine Cancer',
'Veterans',
'Veterans With Disabilities',
'Veterans with Service Connected Disability',
'Veterans with combat related injury or disability',
'Victims of Human Trafficking',
'Vietnam Era Veterans',
'WIC Recipients',
'Wartime Veterans',
'Women',
'World War I Veterans',
'World War II Veterans',
'Wounded Active Duty',
'Wounded Veterans'] None of these appear are in the list of taxonomies to filter by. A few of them do appear to correspond to whether the site distributes food, but none of them indicate whether it is a food bank or a food pantry. Looking at the 211 site, the "taxonomies" field appears to be corresponding to the "Target Populations" section (example), but the taxonomies we were given to filter by are for the "Areas of Focus" section. If 211 San Diego provides API access, we should be able to get the "Areas of Focus data", so this shouldn't be a major issue. |
Related Issues
List related Issues:
Description of PR
This adds a script that classifies the site data based on the taxonomy. However, none of the sites in the current data have any of the taxonomies given. A regex is used instead to filter where a site has no valid taxonomies.
This also can filter the data. This removes the filter for whether it is an active site in the front-end code, as that should be filtered in this script.