I’m currently completing the Data Analysis with Python cert, and I just completed the 3rd lesson, and wanted more information about the test question challenge for this video:
Here is the test question:
What does the loc method allow you to do? (Select 1)
- A. Retrieve a subset of rows and columns by supplying integer-location arguments.
- B. Access a group of rows and columns by supplying label(s) arguments.
- C. Returns the first n rows based on the integer argument supplied.
I knew that loc() is used for filtering after watching the first three videos in this series, and knew that the answer was either A or B before attempting to answer. What I was wondering is what is the difference between integer-location arguments and label(s) arguments. I don’t recall either of those things being mentioned before during the first three videos, and did a quick google search on label(s) arguments but came up empty so far. Is label(s) arguments a commonly used term, or is that just how they are referred to in this video? Any information on the different types of arguments and the proper terms would be appreciated.
Thanks in advance!