"how to duplicate rows in pandas, based on items in a list",df['data'] = df['data'].apply(clean_string_to_list)