Skip to content

CLN: io/formats/html.py: refactor #22726

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Nov 18, 2018
Merged
Prev Previous commit
Next Next commit
remove unused functions
  • Loading branch information
simonjayhawkins committed Sep 17, 2018
commit f8a6f8ea9659ed3df4752de3c4e3c5c258dc6cbb
21 changes: 0 additions & 21 deletions pandas/io/formats/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,24 +475,3 @@ def _write_hierarchical_rows(self, fmt_values, indent):
row.insert(row_levels + self.fmt.tr_col_num, '...')
self.write_tr(row, indent, self.indent_delta, tags=None,
nindex_levels=frame.index.nlevels)


def single_column_table(column, align=None, style=None):
table = '<table'
if align is not None:
table += (' align="{align}"'.format(align=align))
if style is not None:
table += (' style="{style}"'.format(style=style))
table += '><tbody>'
for i in column:
table += ('<tr><td>{i!s}</td></tr>'.format(i=i))
table += '</tbody></table>'
return table


def single_row_table(row): # pragma: no cover
table = '<table><tbody><tr>'
for i in row:
table += ('<td>{i!s}</td>'.format(i=i))
table += '</tr></tbody></table>'
return table