5
私はデータフレームを持っている:パンダ階層データフレーム
Form nr Element Type Text Options
1 Name1 select text1 op1
1 Name1 select text op2
1 Name1 select text op3
1 Name2 input text2 NaN
2 Name1 input text2 NaN
は、このようなgreateの「ネストされた」階層索引する方法があります:テキスト欄にタイプミスがあると仮定すると、
Form nr Element Type Text Options
1 Name1 select text1 op1
op2
op3
Name2 input text2 NaN
2 Name1 input text2 NaN
ありがとうございます。魅力のように働いた。 – root
この回答を説明したり、関連するドキュメントにリンクしたりできますか? – Mike
http://pandas.pydata.org/pandas-docs/stable/advanced.html –