taxcalc 3.5.0__py3-none-any.whl → 3.5.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
taxcalc/__init__.py CHANGED
@@ -14,4 +14,4 @@ from taxcalc.taxcalcio import *
14
14
  from taxcalc.utils import *
15
15
  from taxcalc.cli import *
16
16
 
17
- __version__ = '3.5.0'
17
+ __version__ = '3.5.1'
taxcalc/utils.py CHANGED
@@ -361,7 +361,7 @@ def create_distribution_table(vdf, groupby, income_measure,
361
361
  dframe = add_income_table_row_variable(vdf, income_measure,
362
362
  SOI_AGI_BINS)
363
363
  # construct grouped DataFrame
364
- gdf = dframe.groupby('table_row', as_index=False)
364
+ gdf = dframe.groupby('table_row', observed=False, as_index=False)
365
365
  dist_table = stat_dataframe(gdf)
366
366
  del dframe['table_row']
367
367
  # compute sum row
@@ -901,7 +901,7 @@ def mtr_graph_data(vdf, year,
901
901
  weight_by_income_measure=dollar_weighting
902
902
  )
903
903
  # split dfx into groups specified by 'table_row' column
904
- gdfx = dfx.groupby('table_row', as_index=False)
904
+ gdfx = dfx.groupby('table_row', observed=False, as_index=False)
905
905
  # apply the weighting_function to percentile-grouped mtr values
906
906
  mtr1_series = gdfx.apply(weighting_function, 'mtr1').values[:, 1]
907
907
  mtr2_series = gdfx.apply(weighting_function, 'mtr2').values[:, 1]
@@ -1018,7 +1018,7 @@ def atr_graph_data(vdf, year,
1018
1018
  include = [0] * num_bins_with_nonpos + [1] * (100 - num_bins_with_nonpos)
1019
1019
  included = np.array(include, dtype=bool)
1020
1020
  # split dfx into groups specified by 'table_row' column
1021
- gdfx = dfx.groupby('table_row', as_index=False)
1021
+ gdfx = dfx.groupby('table_row', observed=False, as_index=False)
1022
1022
  # apply weighted_mean function to percentile-grouped values
1023
1023
  avginc_series = gdfx.apply(weighted_mean, 'expanded_income').values[:, 1]
1024
1024
  avgtax1_series = gdfx.apply(weighted_mean, 'tax1').values[:, 1]
@@ -1192,7 +1192,7 @@ def pch_graph_data(vdf, year, pop_quantiles=False):
1192
1192
  include = [0] * num_bins_with_nonpos + [1] * (100 - num_bins_with_nonpos)
1193
1193
  included = np.array(include, dtype=bool)
1194
1194
  # split dfx into groups specified by 'table_row' column
1195
- gdfx = dfx.groupby('table_row', as_index=False)
1195
+ gdfx = dfx.groupby('table_row', observed=False, as_index=False)
1196
1196
  # apply weighted_mean function to percentile-grouped values
1197
1197
  avginc_series = gdfx.apply(weighted_mean, 'expanded_income').values[:, 1]
1198
1198
  change_series = gdfx.apply(weighted_mean, 'chg_aftinc').values[:, 1]
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: taxcalc
3
+ Version: 3.5.1
4
+ Summary: taxcalc
5
+ Home-page: https://github.com/PSLmodels/Tax-Calculator
6
+ Download-URL: https://github.com/PSLmodels/Tax-Calculator
7
+ License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
8
+ Classifier: Development Status :: 4 - Beta
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Natural Language :: English
11
+ Classifier: License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
12
+ Classifier: Operating System :: OS Independent
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.9
16
+ Classifier: Programming Language :: Python :: 3.10
17
+ Classifier: Programming Language :: Python :: 3.11
18
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: setuptools
22
+ Requires-Dist: numpy
23
+ Requires-Dist: pandas
24
+ Requires-Dist: bokeh
25
+ Requires-Dist: numba
26
+ Requires-Dist: requests
27
+ Requires-Dist: paramtools
28
+
29
+ | | |
30
+ | --- | --- |
31
+ | Org | [![PSL cataloged](https://img.shields.io/badge/PSL-cataloged-a0a0a0.svg)](https://www.PSLmodels.org) [![OS License: CCO-1.0](https://img.shields.io/badge/OS%20License-CCO%201.0-yellow)](https://github.com/PSLmodels/Tax-Calculator/blob/master/LICENSE) [![Jupyter Book Badge](https://jupyterbook.org/badge.svg)](https://pslmodels.github.io/Tax-Calculator/) |
32
+ | Package | [![Python 3.9](https://img.shields.io/badge/python-3.9-blue.svg)](https://www.python.org/downloads/release/python-3916/) [![Python 3.10](https://img.shields.io/badge/python-3.10-blue.svg)](https://www.python.org/downloads/release/python-3108/) [![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3118/) [![PyPI Latest Release](https://img.shields.io/pypi/v/taxcalc.svg)](https://pypi.org/project/taxcalc/) [![PyPI Downloads](https://img.shields.io/pypi/dm/taxcalc.svg?label=PyPI%20downloads)](https://pypi.org/project/taxcalc/) [![Anaconda](https://img.shields.io/conda/dn/conda-forge/taxcalc?color=brightgreen&label=downloads&logo=conda-forge)](https://anaconda.org/conda-forge/taxcalc)|
33
+ | Testing | ![example event parameter](https://github.com/PSLmodels/Tax-Calculator/actions/workflows/build_and_test.yml/badge.svg?branch=master) ![example event parameter](https://github.com/PSLmodels/Tax-Calculator/actions/workflows/deploy_jupyterbook.yml/badge.svg?branch=master) [![Codecov](https://codecov.io/gh/PSLmodels/Tax-Calculator/branch/master/graph/badge.svg)](https://codecov.io/gh/PSLmodels/Tax-Calculator) |
34
+
35
+
36
+ Tax-Calculator
37
+ ==============
38
+
39
+ Tax-Calculator is an open-source microsimulation model for static
40
+ analysis of USA federal income and payroll taxes.
41
+
42
+ We are seeking contributors and maintainers. If you are interested in joining the project as a contributor or maintainer,
43
+ open a new [issue](https://github.com/PSLmodels/Tax-Calculator/issues) and ping [@MattHJensen](https://github.com/MattHJensen/) or [@jdebacker](https://github.com/jdebacker/) -- or just jump right in.
44
+
45
+ Complete documentation is available
46
+ [here](https://PSLmodels.github.io/Tax-Calculator/).
@@ -1,4 +1,4 @@
1
- taxcalc/__init__.py,sha256=sUEdOpq7ZKlDFZ3sygh4dpWLByFWTdZbgP4u7vPLpIE,478
1
+ taxcalc/__init__.py,sha256=Wu6kY8rP0mJJbNsqu1UUCkQ_33aMgFjLCe2KZZrxqtA,478
2
2
  taxcalc/calcfunctions.py,sha256=pmaIRH6zohN3uzUaEunk5-21kXipNUL3nKr8dXlD-jo,143910
3
3
  taxcalc/calculator.py,sha256=41eg3EG9m1wZjQnY7WTeQ-uCTTrLyYjCPIw2cJzYHRI,63465
4
4
  taxcalc/conftest.py,sha256=nO4J7qu1sTHgjqrzhpRMvfMJUrNm6GP_IsSuuDt_MeQ,141
@@ -20,13 +20,13 @@ taxcalc/puf_weights.csv.gz,sha256=Ff4lpP5ojG7J-PYVhwisiRI0dN25KCvVzkWW_48DVwY,12
20
20
  taxcalc/records.py,sha256=OGk5HPZo3NZyxmyCD2J0EeQvPLAbeF4k5T_kMZIJEec,16240
21
21
  taxcalc/records_variables.json,sha256=JB7qZBLHhuUaP1UiH7Esw3vULFDeVrJZ0WeKWtyHgRY,42391
22
22
  taxcalc/taxcalcio.py,sha256=jFfl1Nc5YCqZgxj69B5M1NdIvHyAyymnLvtxiU66scs,31573
23
- taxcalc/utils.py,sha256=vG32JYr_Q1HWoz71zu9PGQC9JeVi6JY3nL0T6oWFtXY,61974
23
+ taxcalc/utils.py,sha256=X82SRxqBuTlg3uFRzTFrvYHMRnzn71t3w9ZPj5x5pho,62038
24
24
  taxcalc/utilsprvt.py,sha256=iIyWp9-N3_XWjQj2jV2CWnJy7vrNlKB2_vIMwYjgbWY,1323
25
25
  taxcalc/cli/__init__.py,sha256=cyZ0tdx41j_vV_B6GAkqJmNKKG-B0wUC0ThC75lJlk4,104
26
26
  taxcalc/cli/tc.py,sha256=WtieQ4hc8xdctdmIwe7Ro52_7DQgX1k8zzdns6JrbDw,10781
27
- taxcalc-3.5.0.dist-info/LICENSE.md,sha256=m5epLdB-_NXiY7NsEDgcHP4jDtJ4vOlRf5S3Jb-jraY,1299
28
- taxcalc-3.5.0.dist-info/METADATA,sha256=cdbcoUAs5oJqruTx-TJqLJzq8Hdm2PdHFAGhlFUPfSE,1935
29
- taxcalc-3.5.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
30
- taxcalc-3.5.0.dist-info/entry_points.txt,sha256=a3ZE1piRv683p27fOLdWZvVJXESkoslTOp5iXV7uVco,50
31
- taxcalc-3.5.0.dist-info/top_level.txt,sha256=Wh8wTDHkA_cm4dn8IoUCviDyGgVQqwEQKPJnl8z6d4c,8
32
- taxcalc-3.5.0.dist-info/RECORD,,
27
+ taxcalc-3.5.1.dist-info/LICENSE,sha256=m5epLdB-_NXiY7NsEDgcHP4jDtJ4vOlRf5S3Jb-jraY,1299
28
+ taxcalc-3.5.1.dist-info/METADATA,sha256=fEQOrnQfoE5xwdznxZ2j_-oto4ZNQn6m75Fgm3jmn1o,3170
29
+ taxcalc-3.5.1.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
30
+ taxcalc-3.5.1.dist-info/entry_points.txt,sha256=a3ZE1piRv683p27fOLdWZvVJXESkoslTOp5iXV7uVco,50
31
+ taxcalc-3.5.1.dist-info/top_level.txt,sha256=Wh8wTDHkA_cm4dn8IoUCviDyGgVQqwEQKPJnl8z6d4c,8
32
+ taxcalc-3.5.1.dist-info/RECORD,,
@@ -1,42 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: taxcalc
3
- Version: 3.5.0
4
- Summary: taxcalc
5
- Home-page: https://github.com/PSLmodels/Tax-Calculator
6
- Download-URL: https://github.com/PSLmodels/Tax-Calculator
7
- License: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
8
- Classifier: Development Status :: 4 - Beta
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Natural Language :: English
11
- Classifier: License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication
12
- Classifier: Operating System :: OS Independent
13
- Classifier: Programming Language :: Python
14
- Classifier: Programming Language :: Python :: 3
15
- Classifier: Programming Language :: Python :: 3.7
16
- Classifier: Programming Language :: Python :: 3.8
17
- Classifier: Programming Language :: Python :: 3.9
18
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
19
- License-File: LICENSE.md
20
- Requires-Dist: setuptools
21
- Requires-Dist: numpy
22
- Requires-Dist: pandas
23
- Requires-Dist: bokeh
24
- Requires-Dist: numba
25
-
26
- [![PSL cataloged](https://img.shields.io/badge/PSL-cataloged-a0a0a0.svg)](https://www.PSLmodels.org)
27
- [![Python 3.6+](https://img.shields.io/badge/python-3.6%2B-blue.svg)](https://www.python.org/downloads/release/python-360/)
28
- [![Build Status](https://travis-ci.org/PSLmodels/Tax-Calculator.svg?branch=master)](https://travis-ci.org/PSLmodels/Tax-Calculator)
29
- [![Codecov](https://codecov.io/gh/PSLmodels/Tax-Calculator/branch/master/graph/badge.svg)](https://codecov.io/gh/PSLmodels/Tax-Calculator)
30
-
31
-
32
- Tax-Calculator
33
- ==============
34
-
35
- Tax-Calculator is an open-source microsimulation model for static
36
- analysis of USA federal income and payroll taxes.
37
-
38
- We are seeking contributors and maintainers. If you are interested in joining the project as a contributor or maintainer,
39
- open a new [issue](https://github.com/PSLmodels/Tax-Calculator/issues) and ping @MattHJensen or @jdebacker -- or just jump right in.
40
-
41
- Complete documentation is available
42
- [here](https://PSLmodels.github.io/Tax-Calculator/).