Skip to content

Instantly share code, notes, and snippets.

@datagy
Last active March 27, 2020 07:19
Show Gist options
  • Select an option

  • Save datagy/1142b5093426f61652b4e90614771166 to your computer and use it in GitHub Desktop.

Select an option

Save datagy/1142b5093426f61652b4e90614771166 to your computer and use it in GitHub Desktop.
# 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