Skip to content

Commit

Permalink
add a requirement and eliminated some depracated pandas option
Browse files Browse the repository at this point in the history
  • Loading branch information
FDonati committed Apr 16, 2021
1 parent 54a6eb2 commit dc4c261
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pycirk/make_scenarios.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def counterfactual(scen_file, scen_no, M, M_name, labels):
raise KeyError("only integer or explicit name (scenario_x) are allowed")


scenario = pd.read_excel(scen_file, sheet_name=scen_no, header=1, index=None)
scenario = pd.read_excel(scen_file, sheet_name=scen_no, header=1)

if scenario["matrix"].isnull().values.all():
matrix = M
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ pandas>=0.24.2
numpy>=1.16.4
munch>=2.3.2
openpyxl>=2.6.2
pytest>=5.0.1
pytest>=5.0.1
munch
Binary file modified tests/scenarios.xlsx
Binary file not shown.

0 comments on commit dc4c261

Please sign in to comment.