Skip to content

Commit ecfaa4c

Browse files
committed
in python3, zip does not return a list, so list(zip(...))
1 parent 452e08d commit ecfaa4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/html.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,13 @@ def _expand_colspan_rowspan(self, rows, fill_rowspan=True):
466466
for col in extracted_row]
467467
# expand cols using col_colspans
468468
# maybe this can be done with a list comprehension, dunno
469-
cols = zip(
469+
cols = list(zip(
470470
list(flatten(
471471
lmap(lambda text_nc: [text_nc[0]] * text_nc[1],
472-
zip(cols_text, col_colspans)))),
472+
list(zip(cols_text, col_colspans))))),
473473
list(flatten(
474474
lmap(lambda nc_nr: [nc_nr[1]] * nc_nr[0],
475-
zip(col_colspans, col_rowspans))))
475+
list(zip(col_colspans, col_rowspans))))))
476476
)
477477
# cols is now a list of (text, number of rows)
478478
# now insert any previous rowspans

0 commit comments

Comments
 (0)