Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (7 sloc) 243 Bytes
import numpy as np
import pandas as pd
data = np.array([['', 'Col1', 'Col2'], ['Fila1', 11, 22], ['Fila2', 33, 44]])
print(pd.DataFrame(data=data[1:, 1:],
index=data[1:, 0],
columns=data[0, 1:]))
You can’t perform that action at this time.