Tax-Calculator Private Utilities

Tax-Calculator Private Utilities

taxcalc.utilsprvt

PRIVATE utility functions for Tax-Calculator PUBLIC utility functions.

taxcalc.utilsprvt.agi_weighted(dframe, col_name)[source]

Return AGI-weighted mean of Pandas DataFrame col_name items.

taxcalc.utilsprvt.expanded_income_weighted(dframe, col_name)[source]

Return expanded-income-weighted mean of Pandas DataFrame col_name items.

taxcalc.utilsprvt.wage_weighted(dframe, col_name)[source]

Return wage-weighted mean of Pandas DataFrame col_name items.

taxcalc.utilsprvt.weighted_mean(dframe, col_name)[source]

Return weighted mean of Pandas DataFrame col_name items.