Skip to content

Commit

Permalink
add repr html method
Browse files Browse the repository at this point in the history
  • Loading branch information
Arshia Sharma committed Nov 26, 2024
1 parent 24a27e8 commit 446a254
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/scores/categorical/contingency_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ def __str__(self):
tablerepr = repr(table)
final = "\n".join([heading, tablerepr])
return final

def _repr_html(self):
return '<td>%s</td><td></td>' % (self.format_table())

def get_counts(self) -> dict:
"""
Expand Down

0 comments on commit 446a254

Please sign in to comment.