Q. What is the basic difference between pivot() and pivot_table( )?
Answer =
pivot () is used for pivoting the dataframe without applying aggregation. It doesn't contain same values or columns/index. While
pivot_table () will pivot the dataframe by applying aggregation on it. And it will work with duplicate values or columns/index.
Thank you ☺️
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )