行・列のIndexを指定した上でpandas.DataFrameを作る
Indexの指定がめんどくせぇわ…
In [1]: import pandas as pd In [2]: df = pd.DataFrame([ ...: [0.00, 0.03, 0.000], ...: [0.01, 0.04, 0.005], ...: [0.02, 0.05, 0.010] ...: ], ...: index=pd.Index([0, 1, 2], name='hoge'), ...: columns=pd.Index(['0_0', '0_1', '1_0'], name='hage') ...: ) In [3]: df Out[8]: hage 0_0 0_1 1_0 hoge 0 0.00 0.03 0.000 1 0.01 0.04 0.005 2 0.02 0.05 0.010