df.ix[2, 'col2':'col3'], , , , 2 1, , ix , .
:
.ix . , , ..ix .loc .iloc..ix ..ix - .
In [246]:
df.ix[2,'col2':'col3']
Out[246]:
col2 3
col3 3
Name: 2, dtype: int64
, , , :
In [247]:
df.iloc[2][['col2','col3']]
Out[247]:
col2 2
col3 1
Name: 4, dtype: int64
reset , ix, , :
In [250]:
df = df.reset_index().drop('index',axis=1)
df
Out[250]:
col1 col2 col3
0 1 4 2
1 2 3 3
2 3 2 1
3 4 1 4
In [251]:
df.ix[2,'col2':'col3']
Out[251]:
col2 2
col3 1
Name: 2, dtype: int64