CSV Reader¶
- class ionworks.data.read.csv.CSV[source]¶
Bases:
BaseReader- run(filename: str | Path, extra_column_mappings: dict[str, str] | None = None, options: dict[str, str] | None = None) DataFrame[source]¶
Read a CSV file and return a Polars DataFrame with appropriate column names.
- Parameters:
filename (str | Path) – Path to the CSV file to be read.
extra_column_mappings (dict[str, str] | None, optional) – Dictionary of additional column mappings to use when reading the CSV file. The keys are the original column names and the values are the new column names. Default is None.
options (dict[str, str] | None, optional) –
Dictionary of options to use when reading the CSV file.
Options are:
- cell_metadata: dict, optional
Additional metadata about the cell. Default is empty dict.
- Returns:
Processed data from the CSV file with standardized column names and units. By default, only returns the columns “Time [s]”, “Voltage [V]”, “Current [A]”, “Current [mA.cm-2]”, and “Temperature [degC]”.
- Return type:
pl.DataFrame