a = [[0,0,0,0],[0,-1,1,0],[1,-1,1,0],[1,-1,1,0]] df = pd.DataFrame(a, columns=[\'A\',\'B\',\'C\',\'D\']) df Output: A B C D 0 0 0 0 0 1 0