예제 #1
0
def update_data_2(start_date, end_date, derived_filter_query_structure):
    data_2 = update_second_datatable(start_date, end_date, 'Paid Search',
                                     'Placement type')
    (pd_query_string,
     df_filtered) = construct_filter(derived_filter_query_structure, df=data_2)

    if pd_query_string != '':
        df_filtered = df_filtered.query(pd_query_string)

    return df_filtered.to_dict("rows")
예제 #2
0
def update_data_2_metasearch(start_date, end_date,
                             derived_filter_query_structure):
    (pd_query_string,
     df_filtered) = construct_filter(derived_filter_query_structure)

    if pd_query_string != '':
        df_filtered = df_filtered.query(pd_query_string)

    intermediate = df_filtered.to_dict('rows')
    data_2 = update_second_datatable(start_date, end_date,
                                     'Metasearch and Travel Ads',
                                     'Placement type', intermediate)

    return data_2
예제 #3
0
def update_data_2_metasearch(start_date, end_date):
    data_2 = update_second_datatable(start_date, end_date,
                                     'Metasearch and Travel Ads',
                                     'Placement type')
    return data_2
예제 #4
0
def update_data_2_publishing(start_date, end_date):
    data_2 = update_second_datatable(start_date, end_date, 'Publishing',
                                     'Placement type')
    return data_2
예제 #5
0
def update_data_2_display(start_date, end_date):
    data_2 = update_second_datatable(start_date, end_date, 'Display',
                                     'Placement type')
    return data_2
예제 #6
0
def update_data_2(start_date, end_date):
    data_2 = update_second_datatable(start_date, end_date, 'Paid Search',
                                     'Placement type')
    return data_2
예제 #7
0
def update_data_2(start_date, end_date):
    data_2 = update_second_datatable(start_date, end_date, None, 'GA Category')
    return data_2
예제 #8
0
def update_data_2(start_date, end_date, serial_number):
    data_2 = update_second_datatable(start_date, end_date, serial_number)
    return data_2