Created
May 9, 2020 17:56
-
-
Save AnasAlmasri/823a9defed25327ce34fd004d370aba0 to your computer and use it in GitHub Desktop.
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
# combine all yearly dataframes into one dataframe | |
df = pd.concat(df_yearly) | |
# reverse dataframe so that oldest story has the smallest index | |
df = df.iloc[::-1] | |
# reset index to remove overlapping indices across dataframes | |
df.reset_index(drop=True, inplace=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment