English, asked by aplombwaterworld816, 7 months ago

difference between the working of loc and iloc with data frame​

Answers

Answered by aditipriya76
3

loc gets rows (or columns) with particular labels from the index. iloc gets rows (or columns) at particular positions in the index (so it only takes integers). ix usually tries to behave like loc but falls back to behaving like iloc if a label is not present in the index.

Similar questions