PSLmodels / Cost-of-Capital-Calculator

A cost of capital and effective tax rate calculator
https://ccc.pslmodels.org
Other
17 stars 33 forks source link

Updates to deprecated commands #396

Closed jdebacker closed 2 months ago

jdebacker commented 2 months ago

This PR fixed some errors arising from deprecated packages (namely, pkg_resources) and methods (e.g., the behavior of the replace method on Pandas DataFrames.

codecov-commenter commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.91%. Comparing base (69cdc1a) to head (a917b80). Report is 10 commits behind head on master.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396/graphs/tree.svg?width=650&height=150&src=pr&token=vOrtCdGu1c&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels)](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) ```diff @@ Coverage Diff @@ ## master #396 +/- ## =========================================== - Coverage 100.00% 99.91% -0.09% =========================================== Files 11 11 Lines 1140 1140 =========================================== - Hits 1140 1139 -1 - Misses 0 1 +1 ``` | [Flag](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) | `99.91% <100.00%> (-0.09%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files with missing lines](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels) | Coverage Δ | | |---|---|---| | [ccc/\_\_init\_\_.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&filepath=ccc%2F__init__.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL19faW5pdF9fLnB5) | `100.00% <100.00%> (ø)` | | | [ccc/calcfunctions.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&filepath=ccc%2Fcalcfunctions.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL2NhbGNmdW5jdGlvbnMucHk=) | `100.00% <100.00%> (ø)` | | | [ccc/calculator.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&filepath=ccc%2Fcalculator.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL2NhbGN1bGF0b3IucHk=) | `100.00% <ø> (ø)` | | | [ccc/constants.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&filepath=ccc%2Fconstants.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL2NvbnN0YW50cy5weQ==) | `100.00% <ø> (ø)` | | | [ccc/parameters.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&filepath=ccc%2Fparameters.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL3BhcmFtZXRlcnMucHk=) | `100.00% <100.00%> (ø)` | | | [ccc/utils.py](https://app.codecov.io/gh/PSLmodels/Cost-of-Capital-Calculator/pull/396?src=pr&el=tree&filepath=ccc%2Futils.py&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=PSLmodels#diff-Y2NjL3V0aWxzLnB5) | `98.97% <100.00%> (-1.03%)` | :arrow_down: |