Untitled
unknown
plain_text
a year ago
778 B
5
Indexable
Never
event_list = event_funnel_by_group['event_name'].unique() for event in event_list: successes1 = event_funnel_by_group.loc[event_funnel_by_group['event_name'] == event, 246].values[0] successes2 = event_funnel_by_group.loc[event_funnel_by_group['event_name'] == event, 247].values[0] print(f"Событие: {event}, success1: {successes1}, success2: {successes2}") print(' ') print('Считаем trials') print(' ') for event in event_list: trials1 = event_funnel_by_group.loc[event_funnel_by_group['event_name'] == event_list[0], 246].values[0] trials2 = event_funnel_by_group.loc[event_funnel_by_group['event_name'] == event_list[0], 247].values[0] print(f"Событие {event}: trials1 = {trials1}, trials2 = {trials2}")