Skip to content

Commit

Permalink
Merge pull request astropy#17608 from eerovaher/rm-needless-fmt-off
Browse files Browse the repository at this point in the history
Remove a needless pair of `fmt: off/on` instructions
  • Loading branch information
pllim authored Jan 8, 2025
2 parents 954300c + 7ef18a6 commit ffa796e
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions astropy/table/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -4098,15 +4098,13 @@ def _encode_mixins(tbl):

badcols = [name for name, col in self.columns.items() if len(col.shape) > 1]
if badcols:
# fmt: off
raise ValueError(
f'Cannot convert a table with multidimensional columns to a '
f'pandas DataFrame. Offending columns are: {badcols}\n'
f'One can filter out such columns using:\n'
f'names = [name for name in tbl.colnames if len(tbl[name].shape) <= 1]\n'
f'tbl[names].to_pandas(...)'
f"Cannot convert a table with multidimensional columns to a "
f"pandas DataFrame. Offending columns are: {badcols}\n"
f"One can filter out such columns using:\n"
f"names = [name for name in tbl.colnames if len(tbl[name].shape) <= 1]\n"
f"tbl[names].to_pandas(...)"
)
# fmt: on

out = OrderedDict()

Expand Down

0 comments on commit ffa796e

Please sign in to comment.