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.
Pandas loc and iloc | Pandas loc tutorial | Pandas iloc slicing | loc vs iloc
Pandas loc iloc documentation:
pandas.pydata.org/pandas-docs...
22 апр 2019