DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+7 =
Submit