Return the city of the row labelled 2 in orders, using .loc
pandas · from [] vs .loc vs .iloc
df["col"].loc.iloc.at.iatlabel slicesposition slicesPutting the kettle on…
Starting up…
Exercise 1
Return the city of the row labelled 2 in orders, using .loc.
your answer
stuck? the lesson behind it
[] vs .loc vs .iloc
Three ways in, three different questions — and the one that silently returns the wrong row.