...

/

Challenge: Summing and Swapping

Challenge: Summing and Swapping

In this challenge, pandas is used to sum the minimum and maximum values of the rows and columns of a DataFrame, which are then swapped.

We'll cover the following...

Problem statement

We have to implement the function Sum_Swap(df). The df is the DataFrame on which operations will be performed. The task is to create a new column and a new row and then swap their values. The following steps are performed to calculate the values for the new row and column ...