summary in python

summary = data.describe()
summary = summary.transpose()

Here is what the above code is Doing:
1. We’re using the describe() method to get summary statistics for all the columns in the dataset.
2. We’re using the transpose() method to transpose the output so that the columns are the rows and vice-versa.
3. We’re storing the output in a variable called summary.