read_csv#
- caf.toolkit.io.read_csv(path, name=None, **kwargs)[source]#
Read CSV files, wraps pandas.read_csv to perform additional checks.
Provides more detailed error messages about missing columns.
- Parameters:
- Returns:
DataFrame containing the information from the CSV.
- Return type:
pd.DataFrame
- Raises:
MissingColumnsError – If any columns given in usecols don’t exist in the CSV.
ValueError – If any of the columns in dtype cannot be converted to the given data type.