Hello Learners,
Difference between pivot() and pivot_table() can be found in the following link:
Difference between pivot() and pivot_table()