Pandas loc function tutorial. The loc function is used for extracting row and column data at the same time.