Skip to content

Commit

Permalink
change to resolve warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter-Metz committed Aug 26, 2020
1 parent 00d47e9 commit cba2a1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
17 changes: 1 addition & 16 deletions docs/cruncher_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,7 @@
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/Users/petermetz/anaconda3/envs/taxcrunch-env/lib/python3.7/site-packages/pandas/core/computation/expressions.py:68: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison\n",
" return op(a, b)\n",
"/Users/petermetz/anaconda3/envs/taxcrunch-env/lib/python3.7/site-packages/pandas/core/computation/expressions.py:68: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison\n",
" return op(a, b)\n",
"/Users/petermetz/anaconda3/envs/taxcrunch-env/lib/python3.7/site-packages/pandas/core/computation/expressions.py:68: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison\n",
" return op(a, b)\n",
"/Users/petermetz/anaconda3/envs/taxcrunch-env/lib/python3.7/site-packages/pandas/core/computation/expressions.py:68: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison\n",
" return op(a, b)\n"
]
}
],
"outputs": [],
"source": [
"# path to input csv file\n",
"CURRENT_PATH = os.path.abspath(os.path.dirname('file'))\n",
Expand Down
2 changes: 1 addition & 1 deletion taxcrunch/cruncher.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def translate(self, ivar):
# convert both Cruncher and Batch inputs (i.e. Single/Joint
# and 0/1)
mars = np.where(
np.logical_or(mstat == "Single", mstat == 1),
np.logical_or(mstat.astype(str) == "Single", mstat == 1),
np.where(num_deps > 0, 4, 1),
2,
)
Expand Down

0 comments on commit cba2a1a

Please sign in to comment.