Return the first three rows of orders by position
pandas · from [] vs .loc vs .iloc
df["col"].loc.iloc.at.iatlabel slicesposition slicesPutting the kettle on…
Starting up…
Exercise 2
Return the first three rows of orders by position.
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.