Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
eldridgejm committed Jun 12, 2024
1 parent a857da6 commit edbce85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gradelib/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

def empty_mask_like(table: pd.DataFrame) -> pd.DataFrame:
"""Given a dataframe, create another just like it with every entry False."""
empty = table.copy()
empty = pd.DataFrame(index=table.index, columns=table.columns)
empty.iloc[:, :] = False
return empty.astype(bool)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_core/test_gradebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def test_groups_setter_allows_extra_credit_if_option_set():
}

# then
gradebook.overall_score.loc["A1"] = 1.075
assert gradebook.overall_score.loc["A1"] == 1.075


# group_scores -------------------------------------------------------------------------
Expand Down

0 comments on commit edbce85

Please sign in to comment.