Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

reshape wide to long in pandas

pd.DataFrame(df.unstack().reset_index())
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reshape #wide #long #pandas
ADD COMMENT
Topic
Name
1+7 =