differencce between loc ,iloc and [] in pandas code example
Example: whats the difference iloc and loc
- The .iloc indexer selects only by integer location and works
similarly to Python lists.
- The .loc indexer selects only by index label, which is
similar to how Python dictionaries work.