otld.tableau.tableau_datasets_financial

Generate Tableau-specific long dataset

Functions

calculate_pce(path, base_year)

Output a base_pce as well as calculate pce for every federal fiscal year.

generate_long_data()

Generate Tableau-specific long dataset

generate_wide_data()

Generate Tableau-specific wide dataset

get_consolidated_column(column, map)

Get consolidated column associated with current column.

inflation_adjust(row)

Adjust amount for inflation

main()

Generate tableau data

transform_financial_long(df, pce_path)

Transform long data