Guest User

Untitled

a guest
Mar 23rd, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. my_list_of_strings = ['Demographics', 'SummaryMeasuresOfHealth', 'LeadingCausesOfDeath', 'MeasuresOfBirthAndDeath', 'RelativeHealthImportance', 'VunerablePopsAndEnvHealth', 'PreventiveServicesUse', 'RiskFactorsAndAccessToCare']
  2.  
  3. def make_pagename_dataframes(page_name_list):
  4. list_of_dfs = []
  5. for i in page_name_list:
  6. list_of_dfs.append(original_df.loc[original_df['PAGE_NAME'] == i])
  7. return list_of_dfs
  8.  
  9. list_of_new_dfs = make_pagename_dataframes(my_list_of_strings)
Add Comment
Please, Sign In to add comment