text = """
<table>
<tr><th>head 1</th><th>head 2</th><th>head 3</th></tr>
<tr><td>item 1</td><td>item 2</td><td>item 3</td></tr>
</table>
"""
table = html.fragment_fromstring(text)
for row in table.iterchildren():
    pass
How do I remove a column from a table in beautifulsoup (Python)