Skip to content

Commit

Permalink
Merge pull request #479 from data-to-insight/Fix-88
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
WillLP-code authored May 22, 2024
2 parents d94cc2d + 40668e3 commit 5462c46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cin_validator/rules/cin2022_23/rule_8873Q.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def validate(
)

df_ass_merged = df_ass_merged[
(df_ass_merged[AssessmentFactor] == "2B")
(df_ass_merged[AssessmentFactor] == "21")
| (df_ass_merged[AssessmentFactor] == "21 No factors identified")
| (df_ass_merged[AssessmentFactor].str.contains("21"))
]
Expand Down
2 changes: 1 addition & 1 deletion cin_validator/rules/cin2022_23/rule_8898.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def test_validate():
# check that the failing locations are contained in a DataFrame having the appropriate columns. These lines do not change.
assert isinstance(issue_rows, pd.DataFrame)
assert issue_rows.columns.to_list() == ["ERROR_ID", "ROW_ID"]
print(issue_rows)

# Create the dataframe which you expect, based on the fake data you created. It should have two columns.
# - The first column is ERROR_ID which contains the unique combination that identifies each error instance, which you decided on earlier.
# - The second column in ROW_ID which contains a list of index positions that belong to each error instance.
Expand Down

0 comments on commit 5462c46

Please sign in to comment.