

def test_todataframe():
    tbl = [('foo', 'bar', 'baz'), ('apples', 1, 2.5), ('oranges', 3, 4.4), ('pears', 7, 0.1)]
    expect = pd.DataFrame.from_records(actual[1:], columns=tbl[0])
    actual = todataframe(tbl)
    assert expect.equals(actual)

dataset/ETHPy150Open alimanfoo/petl/petl/test/io/test_pandas.py test_todataframe/VarMisuse@53/75 `tbl`->`actual`