diff --git a/dataframe_image/converter/matplotlib_table.py b/dataframe_image/converter/matplotlib_table.py index ada0a9f..8829040 100644 --- a/dataframe_image/converter/matplotlib_table.py +++ b/dataframe_image/converter/matplotlib_table.py @@ -144,7 +144,7 @@ def parse_row(row): for row in tbody.findall(".//tr"): rows.append(parse_row(row)) - if not thead and not tbody: + if thead is None and tbody is None: for row in tree.findall(".//tr"): rows.append(parse_row(row))