Help
Contact
For teachers and institutes
Search courses, problems, tests…
A
A
>_
StemPy Lab
Courses ▾
Problems ▾
Practice ▾
Mock Tests
Classes
Groups
Community ▾
A
A
What is the difference between loc and iloc? | StemPy Lab
Quizzes
/
What is the difference between loc and iloc?
Python Programming
Medium
High School (11–12)
High School (9–10)
Undergraduate
General
Python for Science and Maths › Data Analysis with pandas
Created by
StemPy Lab
What is the difference between loc and iloc?
loc is for columns and iloc is for rows
There is no difference
loc changes the table and iloc does not
loc uses the labels of the index and iloc uses the places counted from 0
Check Answer
Log in to save
Tag someone
⚑ Report
← All Quizzes
← For a DataFrame df with a column named mass, what is df["mass"]?
A column of a table has the values 4, 6 and NaN. What does the mean of the column give in pandas? →
More on
Python for Science and Maths › Data Analysis with pandas
Discussion (0)
Log in
to join the discussion.
Loading…
Problems on this topic
Boyle's law says that for a gas at a fixed temperature, the pressure is inversely proportional to…
Hard
Kepler's third law holds for the moons of a planet too, with another constant.
Hard
A lamp is measured at the distances 0.5, 1, 1.5, 2 and 3 m, and the light that arrives is 400, 100…
Medium
The length of six leaves in cm is 2, 4, 6, 8, 10 and 12, and their areas in square cm are 2.1, 8.5…
Medium
All problems on this topic →