From 31768137a28de29e9b6e31066e50a357c5c9a6eb Mon Sep 17 00:00:00 2001 From: Liz Gehret Date: Fri, 23 Sep 2022 14:59:31 -0700 Subject: [PATCH] bug: pandas NULL handling overriding border=0 --- q2templates/util.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/q2templates/util.py b/q2templates/util.py index 08475e1..df434cb 100644 --- a/q2templates/util.py +++ b/q2templates/util.py @@ -12,8 +12,9 @@ import pandas as pd -def df_to_html(df, border=0, classes=('table', 'table-striped', 'table-hover'), - **kwargs): +def df_to_html(df, border="0", classes=('table', 'table-striped', + 'table-hover'), **kwargs): + """Convert a dataframe to HTML without truncating contents. pandas will truncate cell contents that exceed 50 characters by default.