S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to expand lists or dicts in a DataFrame column into separate columns?

  • (A) explode()
  • (B) melt()
  • (C) stack()
  • (D) unstack()
  • Correct Answer - Option(A)
  • Views: 2
  • Filed under category Pandas
  • Hashtags:

Explanation by: Shyam Dubey
The explode() method transforms each element of a list-like to a separate row, effectively flattening the column.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.