Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas flip x and y axis

# You can transpose the dataframe
df = pd.DataFrame(data)
df = df.T
# or 
df.transpose()
 
PREVIOUS NEXT
Tagged: #pandas #flip #axis
ADD COMMENT
Topic
Name
9+8 =