dispel.io.core module#
Core functionality to read files.
TODO: investigate to merge with dispel.io.raw
- dispel.io.core.convert_data_frame_type(data)[source]#
Convert a data frame based on the core type mapping.
- Parameters:
data (DataFrame) – The data frame to be converted
- Returns:
The data frame with converted columns according to
get_data_type_mapping()
.- Return type:
- dispel.io.core.convert_literal_type(name, value)[source]#
Convert a literal based on the core type mapping.
- Parameters:
name (str) – The name of the variable to be used in the type mapping. This is passed to
get_data_type_mapping()
.value (Any) – The value to be converted
- Returns:
The converted value
- Return type:
Any