Skip to content

Instantly share code, notes, and snippets.

import os
import glob
import pandas as pd
from bokeh.plotting import figure, show
from bokeh.models import ColumnDataSource, HoverTool
from bokeh.transform import linear_cmap
from bokeh.palettes import Viridis256
from bokeh.io import output_notebook
from bokeh.plotting import figure, show
import bokeh.models
import bokeh.palettes
import bokeh.transform
import pandas as pd
from bokeh.plotting import figure, show
import bokeh.models
import bokeh.palettes
import bokeh.transform
import pandas as pd
import pandas as pd
import treasury_gov_pandas
from bokeh.plotting import figure, show
from bokeh.models import NumeralTickFormatter, HoverTool
import bokeh.models
import bokeh.palettes
import bokeh.transform
# ----------------------------------------------------------------------
df = treasury_gov_pandas.update_records(
import yfinance_download
from bokeh.plotting import figure, show
import bokeh.models
import bokeh.palettes
import bokeh.transform
df = yfinance_download.update_records('^GSPC', interval='1d')
import yfinance_download
spx = yfinance_download.update_records('^GSPC', interval='1wk')
ndq = yfinance_download.update_records('^IXIC', interval='1wk')
# ndq = yfinance_download.update_records('^NDX', interval='1wk')
# ----------------------------------------------
import yfinance_download
from bokeh.plotting import figure, show
from bokeh.models import NumeralTickFormatter, HoverTool
import bokeh.models
import bokeh.palettes
import bokeh.transform
# https://www.ffiec.gov/npw/FinancialReport/FinancialDataDownload
# $result_bhcf = Import-Csv .\BHCF.csv
# $result_rssd = Import-Csv .\RSSD.csv
Write-Host 'Importing CSV...' -ForegroundColor Yellow -NoNewline
# $result = Import-Csv -Delimiter '^' -Path BHCF20221231.txt
import pandas as pd
import treasury_gov_pandas
from bokeh.plotting import figure, show
from bokeh.models import NumeralTickFormatter, HoverTool
import bokeh.models
import bokeh.palettes
import bokeh.transform
# ----------------------------------------------------------------------
# df = treasury_gov_pandas.update_records(
import numpy as np
import pandas as pd
import treasury_gov_pandas
df = treasury_gov_pandas.update_records('https://api.fiscaldata.treasury.gov/services/api/fiscal_service/v1/accounting/od/auctions_query')
# print(df.iloc[0].to_string())
# print(df.iloc[-10].to_string())