title: Indexing using iloc
body: <p>Going through a kaggle tutorial the now, while I get the basic idea of what it does, from looking at the output and reading up the documentation, I think I need confirmation of what is going on here: </p>
  
  <pre><code>predictors = ["Pclass", "Sex", "Age", "SibSp", "Parch", "Fare", "Embarked"]
  kf = KFold(titanic.shape[0], n_folds=3, random_state=1)
  
  predictions = []
  
  for train, test in kf:
       train_predictors = (titanic[predictors].iloc[train,:])
  </code></pre>
  
  <p>My main issue here is the last line with the <code>iloc</code> function. The rest is just for context. It just splits the training data up?</p>