Reading from multiple files
It is quite common having several files identically structured stored in the same folder. We provide a way to read all these files at once, instead of individually load them and then perform a concatenation.
Using terality, you can simply pass the folder name containing your several files as path parameter to the pandas API read methods (read_csv, read_parquet, read_json, read_excel...).
1
# folder contains 3 csv with identical headers
2
3
import terality as pd
4
df = pd.read_csv("folder/")
Copied!
Copy link