Expand description
CSV (Comma-Separated Values) file format module
Provides functionality for reading and writing CSV files with various options:
- Basic CSV reading and writing
- Type conversion and automatic type detection
- Missing value handling with customizable options
- Memory-efficient processing of large files using chunked reading
- Support for specialized data types (date, time, complex numbers)
- Column-based operations with flexible configuration CSV file format support
This module provides functionality for reading and writing CSV (Comma-Separated Values) files, commonly used for storing tabular data.
Features:
- Reading and writing CSV files with various configuration options
- Support for custom delimiters, quotes, and line endings
- Handling of missing values and type conversions
- Memory-efficient processing of large files
- Column-based I/O operations
Structs§
- Column
Spec - Column specification for CSV reading
- CsvReader
Config - CSV reader configuration
- CsvWriter
Config - CSV writer configuration
- Missing
Value Options - Types of missing values that can be recognized in CSV files
Enums§
- Column
Type - Column data type specification for type conversion
- Data
Value - Data value type for mixed type columns
- Line
Ending - Line ending options for CSV files
Functions§
- detect_
column_ types - Automatically detect column types from data
- read_
csv - Read a CSV file into a 2D array of strings
- read_
csv_ chunked - Read a CSV file in chunks to process large files memory-efficiently
- read_
csv_ numeric - Read a CSV file and convert to numeric arrays
- read_
csv_ typed - Read a CSV file with type conversion and missing value handling
- write_
csv - Write a 2D array to a CSV file
- write_
csv_ columns - Write multiple 1D arrays to a CSV file as columns
- write_
csv_ typed - Write typed data to a CSV file