coverexp.py
def query_explorer_coverage(hexset=True):
    """Query most recent Explorer coverage hex set from view."""
    view_id = 'most_recent_explorer'
    most_recent_explorer = hexpop.bq_create_view(
        coverage_dataset,
        view_id,
        MOST_RECENT_EXPLORER_UPDATES.format(
            project=coverage_dataset.project,
            coverage_dataset=coverage_dataset.dataset_id),
        force_new=True)
    try:
        df = hexpop.bq_query_table('SELECT * FROM {table}'.format(
            table=hexpop.bq_full_id(most_recent_explorer))).to_dataframe()
    except AttributeError:
        return set(), datetime.datetime.fromtimestamp(0)
    if not hexset:
        return df
    return set(df['h3_index'].loc[df['explorer_coverage']].to_list()), min(
        df['update_time'])
Query most recent Explorer coverage hex set from view.
Query most recent Explorer coverage hex set from view.
Query most recent Explorer coverage hex set from view .
def query_explorer_coverage(hexset=True):
    view_id = 'most_recent_explorer'
    most_recent_explorer = hexpop.bq_create_view(
        coverage_dataset,
        view_id,
        MOST_RECENT_EXPLORER_UPDATES.format(
            project=coverage_dataset.project,
            coverage_dataset=coverage_dataset.dataset_id),
        force_new=True)
    try:
        df = hexpop.bq_query_table('SELECT * FROM {table}'.format(
            table=hexpop.bq_full_id(most_recent_explorer))).to_dataframe()
    except AttributeError:
        return set(), datetime.datetime.fromtimestamp(0)
    if not hexset:
        return df
    return set(df['h3_index'].loc[df['explorer_coverage']].to_list()), min(
        df['update_time'])
def query_explorer_coverage ( hexset = True ) : view_id = 'most_recent_explorer' most_recent_explorer = hexpop . bq_create_view ( coverage_dataset , view_id , MOST_RECENT_EXPLORER_UPDATES . format ( project = coverage_dataset . project , coverage_dataset = coverage_dataset . dataset_id ) , force_new = True ) try : df = hexpop . bq_query_table ( 'SELECT * FROM {table}' . format ( table = hexpop . bq_full_id ( most_recent_explorer ) ) ) . to_dataframe ( ) except AttributeError : return set ( ) , datetime . datetime . fromtimestamp ( 0 ) if not hexset : return df return set ( df [ 'h3_index' ] . loc [ df [ 'explorer_coverage' ] ] . to_list ( ) ) , min ( df [ 'update_time' ] )
Query most recent Explorer coverage hex set from view.
Query most recent Explorer coverage hex set from view .
"""Query most recent Explorer coverage hex set from view."""
hexset