0
の意味、私は次のコードの出力の意味を理解しようとしています:パンダのデータフレーム:.INDEX
import pandas as pd
index = ['index1','index2','index3']
columns = ['col1','col2','col3']
df = pd.DataFrame([[1,2,3],[1,2,3],[1,2,3]], index=index, columns=columns)
print df.index
私はデータフレームのインデックスを含むリストだけを期待する:
[ '出力がしかし]
:
インデックス([u'index1 '' index1の 'INDEX2'、' index3、u'index2' 、u'index3 ']、DTYPE =' オブジェクト ')
をDTYPEは「オブジェクト」とない(などSTR、リスト、など)より具体的なものであるのはなぜ? – qstax
これは 'numpy'のものです:http://docs.scipy.org/doc/numpy/reference/arrays.scalars.htmlだから基本的な型ではないので、' dtype'がどのように表現されているのですか? float、datetime、category、str、lists、dicts、setsはすべて 'object'にまとめられます – EdChum