converting list of header and row lists into pandas DataFrame
Call the pd.DataFrame constructor directly: df = pd.DataFrame(table, columns=headers) df Heading1 Heading2 0 1 2 1 3 4
Call the pd.DataFrame constructor directly: df = pd.DataFrame(table, columns=headers) df Heading1 Heading2 0 1 2 1 3 4
Call the pd.DataFrame constructor directly: df = pd.DataFrame(table, columns=headers) df Heading1 Heading2 0 1 2 1 3 4