loc
works on labels in the index.iloc
works on the positions in the index (so it only takes integers).ix
usually tries to behave likeloc
but falls back to behaving likeiloc
if the label is not in the index.
loc
works on labels in the index. iloc
works on the positions in the index (so it only takes integers).ix
usually tries to behave like loc
but falls back to behaving like iloc
if the label is not in the index.