Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import glob
- # ignore_index = True to avoid duplicate index values
- df = pd.concat([pd.read_csv(f) for f in glob.glob("*.csv")], ignore_index = True)
- # More options
- df = pd.concat([pd.read_csv(f, encoding = "latin1") for f in glob.glob("*.csv")])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement