A

Admin • 828.03K Points
Coach

Q. Which of the following will give unique values of a column?

  • (A) df['col'].unique()
  • (B) df['col'].distinct()
  • (C) df['col'].values()
  • (D) df['col'].set()
  • Correct Answer - Option(A)
  • Views: 9
  • Filed under category Pandas
  • Hashtags:

Explanation by: Admin
`unique()` returns unique values of a Series.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.