Skip to content

Commit

Permalink
Clarify zero boundaries in bin and decile tables
Browse files Browse the repository at this point in the history
  • Loading branch information
martinholmer committed Mar 8, 2018
1 parent 6af3482 commit eb3ce9d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions taxcalc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,25 +108,25 @@
'Share of Overall Change',
'% Change in After-Tax Income']

DECILE_ROW_NAMES = ['0-10n', '0-10p', '10-20', '20-30', '30-40', '40-50',
DECILE_ROW_NAMES = ['0-10zn', '0-10p', '10-20', '20-30', '30-40', '40-50',
'50-60', '60-70', '70-80', '80-90', '90-100',
'all',
'90-95', '95-99', 'Top 1%']

STANDARD_ROW_NAMES = ['<$0K', '$0-10K', '$10-20K', '$20-30K', '$30-40K',
STANDARD_ROW_NAMES = ['<=$0K', '$0-10K', '$10-20K', '$20-30K', '$30-40K',
'$40-50K', '$50-75K', '$75-100K',
'$100-200K', '$200-500K',
'$500-1000K', '>$1000K', 'all']

STANDARD_INCOME_BINS = [-9e99, 0, 9999, 19999, 29999, 39999, 49999,
STANDARD_INCOME_BINS = [-9e99, 1e-9, 9999, 19999, 29999, 39999, 49999,
74999, 99999, 199999, 499999, 1000000, 9e99]

LARGE_INCOME_BINS = [-9e99, 0, 9999, 19999, 29999, 39999, 49999,
LARGE_INCOME_BINS = [-9e99, 1e-9, 9999, 19999, 29999, 39999, 49999,
74999, 99999, 200000, 9e99]

SMALL_INCOME_BINS = [-9e99, 0, 4999, 9999, 14999, 19999, 24999, 29999, 39999,
49999, 74999, 99999, 199999, 499999, 999999, 1499999,
1999999, 4999999, 9999999, 9e99]
SMALL_INCOME_BINS = [-9e99, 1e-9, 4999, 9999, 14999, 19999, 24999, 29999,
39999, 49999, 74999, 99999, 199999, 499999, 999999,
1499999, 1999999, 4999999, 9999999, 9e99]


def unweighted_sum(pdf, col_name):
Expand Down

0 comments on commit eb3ce9d

Please sign in to comment.