Last active
March 27, 2020 07:19
-
-
Save datagy/1142b5093426f61652b4e90614771166 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # Section 1 | |
| import pandas as pd | |
| files = ['https://github.com/datagy/mediumdata/raw/master/january.xlsx', 'https://github.com/datagy/mediumdata/raw/master/february.xlsx', 'https://github.com/datagy/mediumdata/raw/master/march.xlsx'] | |
| combined = pd.DataFrame() | |
| # Section 2 | |
| for file in files: | |
| df = pd.read_excel(file, skiprows = 3) | |
| combined = combined.append(df, ignore_index = True) | |
| # Section 3 | |
| combined.to_excel('combined.xlsx') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment