plt.close() def write_monthly_pdf(): PDF_FILE = 'output/monthly.pdf' var_names = get_dfm().columns.values.tolist() df = get_df(var_names, "m", "1999-01") save_plots_as_pdf(df, PDF_FILE, 3, 2) if __name__ == "__main__": # sample plot ts = get_ts('IND_PROD_yoy', "m", "1999-01") one_plot(ts) plt.close() # png images df = get_dfm() #write_png_pictures(df) # ERROR: TypeError: Empty 'Series': no numeric data to plot # CORP_DEBT_bln_rub NaN # CORP_DEBT_overdue NaN # CORP_DEBT_rog NaN generate_md(df) # PDF output write_monthly_pdf() # not todo/issue: # с меньшим количеством лет ориентация подписей по оси х некрасивая + на англ. яз.
def write_monthly_pdf(): PDF_FILE = 'output/monthly.pdf' var_names = get_dfm().columns.values.tolist() df = get_df(var_names, "m", "1999-01") save_plots_as_pdf(df, PDF_FILE, 3, 2)
def get_dfm_var_list(): return get_dfm().columns.tolist()