I would like to read several csv files from a directory into pandas and concatenate them into one big DataFrame. I have not been able to figure it out though. Here is what I
one liner using map, but if you'd like to specify additional args, you could do:
map
import pandas as pd import glob import functools df = pd.concat(map(functools.partial(pd.read_csv, sep='|', compression=None), glob.glob("data/*.csv")))
Note: map by itself does not let you supply additional args.