Forked from arsham/concatenate multiple csv files in panda.py
Created
September 13, 2019 18:37
-
-
Save tyagian/5de9e95320c4d47ed3e4881cee75ebc3 to your computer and use it in GitHub Desktop.
concatenate multiple csv files in panda
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
| import glob | |
| import pandas as pd | |
| fds = [] | |
| for f in glob.glob("**/*.csv"): | |
| fds.append(pd.read_csv(f)) | |
| frame = pd.concat(fds) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment