Created
April 28, 2021 15:10
-
-
Save jiobu1/c0ea9ba15b86c3c7f065f804b120bc56 to your computer and use it in GitHub Desktop.
transform dataframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
population_melt = (population.melt(id_vars=['City,State'], | |
var_name = 'ds', | |
value_name = 'y' | |
).reset_index(drop=True) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment