のための 'スライス':TypeError例外:非ハッシュタイプ:私は、このように作成パンダのデータ構造、持っているパンダ
test_inputs = pd.read_csv("../input/test.csv", delimiter=',')
は、その形状
print(test_inputs.shape)
この
(28000, 784)
です私はこのような行のサブセットを印刷したい:
print(test_inputs[100:200, :])
print(test_inputs[100:200, :].shape)
しかし、私は取得しています:
TypeError: unhashable type: 'slice'
間違っている可能性がどのような任意のアイデアを?
'test_inputs [100:200]'または 'test_inputs.loc [100:200、:]'? – MaxU