How to get a specific row form a TabularPandas?

This is from Lesson 5 Why you should use a framework | Kaggle

In this notebook TabularObject is constructed:

df, splits=splits,
procs = [Categorify, FillMissing, Normalize],
cat_names=[“Sex”,“Pclass”,“Embarked”,“Deck”, “Title”],
cont_names=[‘Age’, ‘SibSp’, ‘Parch’, ‘LogFare’, ‘Alone’, ‘TicketFreq’, ‘Family’],
y_names=“Survived”, y_block = CategoryBlock(),

How can I get a specific row from this object? Array indexing [] doesn’t work.

Let’s let tp = TabularPandas(...). I don’t quite remember the exact attribute names off the top of my head, but it should be similar. To access the training or validation splits, we can write either tp.train or tp.valid respectively. To access the data and the targets, we can write tp.xs, tp.y, tp.train.xs, tp.train.y, tp.valid.xs, or tp.valid.y. It’s after accessing these data or targets that you can access specific rows.