Hi all I need to rotate two dimensional array as shown in the given picture. and if we rotate one set of array it should reflect for all the problems if you find out please do help me to solve the issue

input:

[![enter image description here](https://i.stack.imgur.com/EkE9C.png)](https://i.stack.imgur.com/EkE9C.png)

output:

[![enter image description here](https://i.stack.imgur.com/qc0kO.png)](https://i.stack.imgur.com/qc0kO.png)

Thankyou

I have tried slicing method to rotate the values but it doesn't give the correct values

```
import pandas as pd 
df = pd.read_csv("/content/pipe2.csv")
df1= df.iloc[6:10]+df.iloc[13:20]
df1

```