I want to add line break after transposing a data frame. I have tried this:
data = pd.read_csv("wwe/maw.csv")
df = pd.DataFrame(data).transpose()
print(df)
df.to_csv("wwe/mawmaw.csv")
After running the code all the data in the csv come to row wise:
But I want to show the data like, the data starts with current gimmik but when current come again it will have line break. How can I do this? I am using pandas
More likely. The column starts with 1 when its in 11 line the line will break. like
A B C D E F H J K L
a s d f g h j k l ;
after changing it should be look like this
A B C D E F
H J K L a s
d f g h j k
