datanitro

Getting list of lists into pandas DataFrame

Getting list of lists into pandas DataFrame Question: I am reading contents of a spreadsheet into pandas. DataNitro has a method that returns a rectangular selection of cells as a list of lists. So table = Cell(“A1”).table gives table = [[‘Heading1’, ‘Heading2’], [1 , 2], [3, 4]] headers = table.pop(0) # gives the headers as …

Total answers: 4