Q. Which method is used to create a pivot table in pandas?

  • (A) pivot()
  • (B) pivot_table()
  • (C) groupby()
  • (D) melt()
πŸ’¬ Discuss
βœ… Correct Answer: (B) pivot_table()
Explanation: pivot_table() creates a spreadsheet-style pivot table for aggregation and analysis.
Explanation by: Sikhar Chaudhary
pivot_table() creates a spreadsheet-style pivot table for aggregation and analysis.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
71
Total Visits
πŸ“½οΈ
11 mo ago
Published
πŸŽ–οΈ
Sikhar Chaudhary
Publisher
πŸ“ˆ
84%
Success Rate