Skip to content

Instantly share code, notes, and snippets.

@xvrtzn
xvrtzn / open_csv_files.py
Created April 30, 2026 20:28
Ouvrir plusieurs fichiers au format CSV pour les mettre dans des data frames pandas
from pathlib import Path
import pandas as pd
# Path library to elegantly handle paths and file names
data_dir = Path("path/to/files")
# List of file names could be created automatically, but the solution to fully createa list of properly named data frame names
# would be a bit bloated I think
files = [
    "EdStatsCountry.csv",