Вот фрейм данных:
bacteria = pd.DataFrame(
{
'bacteria_counts': [632, 1638, 569, 115],
'other_feature': [438, 833, 234, 298]
},
index=['Firmicutes', 'Proteobacteria', 'Actinobacteria', 'Bacteroidetes'])
![enter image description here](https://i.stack.imgur.com/RaI1A.png)
Вот вопрос, если я использую bacteria[2:3]
, он возвращает:
![enter image description here](https://i.stack.imgur.com/eLNKF.png)
Что означает [2:3]
? Строки и столбцы? (Просто начните изучать позиционную индексацию)