Exemple #1
0
def df_end(country, start=None, end=None, f=None, interval='month'):
    open_now = df_open_now(country, end=end, f=f, interval=interval)
    opened = installs_opened.df(country,
                                start=start,
                                end=end,
                                f=f,
                                interval=interval)
    closed = installs_closed.df(country,
                                start=start,
                                end=end,
                                f=f,
                                interval=interval)
    df = open_df.open_df(opened, closed, open_now, interval, 'end')
    return df
Exemple #2
0
def df(country,
       start=None,
       end=None,
       f=None,
       interval='month',
       model=None,
       version=None,
       model_version=None,
       system_type=None,
       by='model'):
    open_now = df_open_now(country,
                           end=end,
                           f=f,
                           interval=interval,
                           model=model,
                           version=version,
                           model_version=model_version,
                           system_type=system_type,
                           by=by)
    opened = installs_opened.df(country,
                                start=start,
                                end=end,
                                f=f,
                                interval=interval,
                                model=model,
                                version=version,
                                model_version=model_version,
                                system_type=system_type,
                                by=by)
    closed = installs_closed.df(country,
                                start=start,
                                end=end,
                                f=f,
                                interval=interval,
                                model=model,
                                version=version,
                                model_version=model_version,
                                system_type=system_type,
                                by=by)
    df = open_df.open_df(opened, closed, open_now, interval, 'end')

    df = df[sorted(list(df))]

    return df