def get_daily_10yr_treasury_data():
 url = 'http://www.federalreserve.gov/datadownload/Output.aspx?rel=H15&series=bcb44e57fb57efbe90002369321bfb3f&lastObs=&from=&to=&filetype=csv&label=include&layout=seriescolumn'
 return pd.read_csv(url, header=5, index_col=0, names=['DATE', 'BC_10YEAR'], parse_dates=True, converters={1: dataconverter}, squeeze=True)

def get_daily_10yr_treasury_data ( ) : url = 'http://www.federalreserve.gov/datadownload/Output.aspx?rel=H15&series=bcb44e57fb57efbe90002369321bfb3f&lastObs=&from=&to=&filetype=csv&label=include&layout=seriescolumn' return pd . read_csv ( url , header = 5 , index_col = 0 , names = [ 'DATE' , 'BC_10YEAR' ] , parse_dates = True , converters = { 1 : dataconverter } , squeeze = True )
download daily 10 year treasury rates from the federal reserve and return a pandas .