def regional_doses(save_image=False, show=False):
    '\n    Comparation between doses administrated in various regions\n    '
    for (area_code, region_data) in benchmark_dict.items():
        rolling_avg_adm = region_data['totale_per_100000_ab'].rolling(7, center=True).mean()
        plt.plot(region_data['data_somministrazione'], rolling_avg_adm, label=area_names_dict[area_code])
    rolling_avg_adm = italy_df['totale_per_100000_ab'].rolling(7, center=True).mean()
    plt.plot(italy_df['data_somministrazione'], rolling_avg_adm, alpha=0.5, linestyle=':', label='Italia')
    plt.title('Andamento delle somministrazioni giornaliere\nper 100.000 abitanti, confronto tra le regioni del benchmark\n')
    plt.gca().xaxis.set_major_locator(MonthLocator())
    plt.gca().xaxis.set_minor_locator(MonthLocator(bymonthday=15))
    plt.gca().xaxis.set_major_formatter(utils.std_date_formatter)
    plt.gca().xaxis.set_minor_formatter(utils.std_date_formatter)
    plt.gcf().autofmt_xdate(which='both')
    plt.grid(True, which='both', axis='both')
    plt.legend(loc='upper left')
    if save_image:
        plt.savefig('./charts/vaccines/dosi_per_regioni.png', dpi=300, transparent=True, bbox_inches='tight')
    if show:
        plt.show()
    plt.close()
Comparation between doses administrated in various regions
def regional_doses(save_image=False, show=False):
    '\n    \n    '
    for (area_code, region_data) in benchmark_dict.items():
        rolling_avg_adm = region_data['totale_per_100000_ab'].rolling(7, center=True).mean()
        plt.plot(region_data['data_somministrazione'], rolling_avg_adm, label=area_names_dict[area_code])
    rolling_avg_adm = italy_df['totale_per_100000_ab'].rolling(7, center=True).mean()
    plt.plot(italy_df['data_somministrazione'], rolling_avg_adm, alpha=0.5, linestyle=':', label='Italia')
    plt.title('Andamento delle somministrazioni giornaliere\nper 100.000 abitanti, confronto tra le regioni del benchmark\n')
    plt.gca().xaxis.set_major_locator(MonthLocator())
    plt.gca().xaxis.set_minor_locator(MonthLocator(bymonthday=15))
    plt.gca().xaxis.set_major_formatter(utils.std_date_formatter)
    plt.gca().xaxis.set_minor_formatter(utils.std_date_formatter)
    plt.gcf().autofmt_xdate(which='both')
    plt.grid(True, which='both', axis='both')
    plt.legend(loc='upper left')
    if save_image:
        plt.savefig('./charts/vaccines/dosi_per_regioni.png', dpi=300, transparent=True, bbox_inches='tight')
    if show:
        plt.show()
    plt.close()