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.

1 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post