On this page Signature

API Reference / mespy.load_csv

load_csv

Signature

load_csv(
    path: str | Path,
    *,
    sep: str = ",",
    decimal: str = ".",
    rename_columns: Mapping[str, str] | None = None,
    required_columns: Collection[str] | None = None,
    missing: Literal["error", "drop", "allow"] = "error",
    comment: str | None = None,
    skip_initial_space: bool = True,
) -> pd.DataFrame

load_csv loads a CSV file into a pandas DataFrame with explicit checks for column renaming, required columns, and missing values.

Overview summarizes purpose, parameters, errors and a usage example; Implementation walks through the internal flow and the implemented formulas step by step.