def forecast_data(year, quarter):
 if (ct._check_input(year, quarter) is True):
  ct._write_head()
  data = _get_forecast_data(year, quarter, 1, pd.DataFrame())
  df = pd.DataFrame(data, columns=ct.FORECAST_COLS)
  df['code'] = df['code'].map((lambda x: str(x).zfill(6)))
  return df

def forecast_data ( year , quarter ) : if ( ct . _check_input ( year , quarter ) is True ) : ct . _write_head ( ) data = _get_forecast_data ( year , quarter , 1 , pd . DataFrame ( ) ) df = pd . DataFrame ( data , columns = ct . FORECAST_COLS ) df [ 'code' ] = df [ 'code' ] . map ( ( lambda x : str ( x ) . zfill ( 6 ) ) ) return df
parameters year:int 年度 e .