Computer Science, asked by joelbenny456, 1 month ago

state differences between iloc and loc?​

Answers

Answered by jaishabhola1
1

Answer:

The main distinction between loc and iloc is:

loc is label-based, which means that you have to specify rows and columns based on their row and column labels.

iloc is integer position-based, so you have to specify rows and columns by their integer position values (0-based integer position).

Explanation:

hope it helps you

Answered by plaannet24
0

loc is label-based, which means that you have to specify rows and columns based on their row and column labels.

loc is label-based, which means that you have to specify rows and columns based on their row and column labels.iloc is integer position-based, so you have to specify rows and columns by their integer position values (0-based integer position).

Similar questions