Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my_list_of_strings = ['Demographics', 'SummaryMeasuresOfHealth', 'LeadingCausesOfDeath', 'MeasuresOfBirthAndDeath', 'RelativeHealthImportance', 'VunerablePopsAndEnvHealth', 'PreventiveServicesUse', 'RiskFactorsAndAccessToCare']
- def make_pagename_dataframes(page_name_list):
- list_of_dfs = []
- for i in page_name_list:
- list_of_dfs.append(original_df.loc[original_df['PAGE_NAME'] == i])
- return list_of_dfs
- list_of_new_dfs = make_pagename_dataframes(my_list_of_strings)
Add Comment
Please, Sign In to add comment