009

Combine a directory of _ with **

Combine a directory of csv’s with pandas

import pandas as pd
from pathlib import Path

csvs = Path.glob('raw/*.csv')
csvs_combined = pd.concat(csvs)
csvs_combined.to_csv('processed/combined.csv')

Connections

Related tags and posts connected to this entry.