S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to sort a DataFrame by column values?

  • (A) sort_values()
  • (B) sort_index()
  • (C) order()
  • (D) rank()
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
sort_values() sorts a DataFrame based on the values of one or more columns.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.