Skip to content

Commit

Permalink
Correct dtype for confusion matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahshi committed Jan 25, 2024
1 parent 39b33d1 commit af5ac6d
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions UnitTests/test_cm.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,6 @@ def test_insert_totals(self):
# Check if DataFrame is modified correctly
pd.testing.assert_frame_equal(df, expected_df)

def test_insert_totals(self):
# Create a sample DataFrame
df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
mm.insert_totals(df)

# Expected DataFrame after insert_totals
expected_df = pd.DataFrame({'A': [1, 2, 3], 'B': [3, 4, 7], 'sum_row': [4, 6, 10]},
index=['0', '1', 'sum_col'])

# Check if DataFrame is modified correctly
pd.testing.assert_frame_equal(df, expected_df)


class test_ConfigCellTextAndColors(unittest.TestCase):

Expand Down

0 comments on commit af5ac6d

Please sign in to comment.