Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 557602624
  • Loading branch information
Responsible ML Infra authored and Responsible ML Infra Team committed Aug 16, 2023
1 parent 3b279ed commit 70da8f0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions fairness_indicators/tutorial_utils/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,21 +254,21 @@ def test_convert_data_csv(self):
df = pd.read_csv(output_file).replace("'", '', regex=True)

expected_df = pd.DataFrame()
expected_df = expected_df.append(
expected_df = pd.concat([expected_df, pd.DataFrame.from_dict(
{
'comment_text':
'comment 1',
['comment 1'],
'toxicity':
0.0,
'gender': [],
'sexual_orientation': ['bisexual'],
'race': ['other_race_or_ethnicity'],
'religion': ['atheist', 'other_religion'],
'disability': [
[0.0],
'gender': [[]],
'sexual_orientation': [['bisexual']],
'race': [['other_race_or_ethnicity']],
'religion': [['atheist', 'other_religion']],
'disability': [[
'physical_disability', 'intellectual_or_learning_disability',
'psychiatric_or_mental_illness', 'other_disability'
]
},
]]
})],
ignore_index=True)

self.assertEqual(
Expand Down

0 comments on commit 70da8f0

Please sign in to comment.