Skip to content

Commit

Permalink
reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
amoghkokari committed Jan 11, 2023
1 parent 0f4e13a commit 2e106b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datascience/tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,9 +746,9 @@ class instance. The formatter is run each time ``__repr__`` is called. So, while
"""
if inspect.isclass(formatter):
formatter = formatter()
if not hasattr(formatter, 'format_column') and callable(formatter):
formatter = _formats.FunctionFormatter(formatter)
if not hasattr(formatter, 'format_column'):
if callable(formatter):
formatter = _formats.FunctionFormatter(formatter)
raise Exception('Expected Formatter or function: ' + str(formatter))
for label in self._as_labels(column_or_columns):
if formatter.converts_values:
Expand Down

0 comments on commit 2e106b8

Please sign in to comment.