Skip to content

Commit

Permalink
fixes bug in way SDC info is displayed via prettify_table when variab…
Browse files Browse the repository at this point in the history
…les have spaces
  • Loading branch information
jim-smith committed Mar 22, 2024
1 parent 444209b commit 6f7b561
Show file tree
Hide file tree
Showing 3 changed files with 197 additions and 3,105 deletions.
1 change: 1 addition & 0 deletions acro/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def prettify_table_string(table: pd.DataFrame, separator: str | None = None) ->
hdelim = "-"
vdelim = "|"

table.rename(columns=lambda x: str(x).replace(" ", "_"), inplace=True)
output = table.to_string(justify="left")
as_strings = output.split("\n")
nheaders = len(as_strings) - table.shape[0]
Expand Down
Loading

0 comments on commit 6f7b561

Please sign in to comment.