A

Admin • 833.24K Points
Coach

Q. What does `df['col'].rank()` return?

  • (A) The column sorted alphabetically
  • (B) The index of each value
  • (C) Ranks of values in the column
  • (D) The column's percentile values
  • Correct Answer - Option(C)
  • Views: 24
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin

`rank()` assigns a rank to each entry in a Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.