libcudf
23.12.00
|
Settings to use for read_csv()
.
More...
#include <csv.hpp>
Public Member Functions | |
csv_reader_options ()=default | |
Default constructor. More... | |
source_info const & | get_source () const |
Returns source info. More... | |
compression_type | get_compression () const |
Returns compression format of the source. More... | |
std::size_t | get_byte_range_offset () const |
Returns number of bytes to skip from source start. More... | |
std::size_t | get_byte_range_size () const |
Returns number of bytes to read. More... | |
std::size_t | get_byte_range_size_with_padding () const |
Returns number of bytes to read with padding. More... | |
std::size_t | get_byte_range_padding () const |
Returns number of bytes to pad when reading. More... | |
std::vector< std::string > const & | get_names () const |
Returns names of the columns. More... | |
std::string | get_prefix () const |
Returns prefix to be used for column ID. More... | |
bool | is_enabled_mangle_dupe_cols () const |
Whether to rename duplicate column names. More... | |
std::vector< std::string > const & | get_use_cols_names () const |
Returns names of the columns to be read. More... | |
std::vector< int > const & | get_use_cols_indexes () const |
Returns indexes of columns to read. More... | |
size_type | get_nrows () const |
Returns number of rows to read. More... | |
size_type | get_skiprows () const |
Returns number of rows to skip from start. More... | |
size_type | get_skipfooter () const |
Returns number of rows to skip from end. More... | |
size_type | get_header () const |
Returns header row index. More... | |
char | get_lineterminator () const |
Returns line terminator. More... | |
char | get_delimiter () const |
Returns field delimiter. More... | |
char | get_thousands () const |
Returns numeric data thousands separator. More... | |
char | get_decimal () const |
Returns decimal point character. More... | |
char | get_comment () const |
Returns comment line start character. More... | |
bool | is_enabled_windowslinetermination () const |
Whether to treat \r\n as line terminator. More... | |
bool | is_enabled_delim_whitespace () const |
Whether to treat whitespace as field delimiter. More... | |
bool | is_enabled_skipinitialspace () const |
Whether to skip whitespace after the delimiter. More... | |
bool | is_enabled_skip_blank_lines () const |
Whether to ignore empty lines or parse line values as invalid. More... | |
quote_style | get_quoting () const |
Returns quoting style. More... | |
char | get_quotechar () const |
Returns quoting character. More... | |
bool | is_enabled_doublequote () const |
Whether a quote inside a value is double-quoted. More... | |
std::vector< std::string > const & | get_parse_dates_names () const |
Returns names of columns to read as datetime. More... | |
std::vector< int > const & | get_parse_dates_indexes () const |
Returns indexes of columns to read as datetime. More... | |
std::vector< std::string > const & | get_parse_hex_names () const |
Returns names of columns to read as hexadecimal. More... | |
std::vector< int > const & | get_parse_hex_indexes () const |
Returns indexes of columns to read as hexadecimal. More... | |
std::variant< std::vector< data_type >, std::map< std::string, data_type > > const & | get_dtypes () const |
Returns per-column types. More... | |
std::vector< std::string > const & | get_true_values () const |
Returns additional values to recognize as boolean true values. More... | |
std::vector< std::string > const & | get_false_values () const |
Returns additional values to recognize as boolean false values. More... | |
std::vector< std::string > const & | get_na_values () const |
Returns additional values to recognize as null values. More... | |
bool | is_enabled_keep_default_na () const |
Whether to keep the built-in default NA values. More... | |
bool | is_enabled_na_filter () const |
Whether to disable null filter. More... | |
bool | is_enabled_dayfirst () const |
Whether to parse dates as DD/MM versus MM/DD. More... | |
data_type | get_timestamp_type () const |
Returns timestamp_type to which all timestamp columns will be cast. More... | |
void | set_compression (compression_type comp) |
Sets compression format of the source. More... | |
void | set_byte_range_offset (std::size_t offset) |
Sets number of bytes to skip from source start. More... | |
void | set_byte_range_size (std::size_t size) |
Sets number of bytes to read. More... | |
void | set_names (std::vector< std::string > col_names) |
Sets names of the column. More... | |
void | set_prefix (std::string pfx) |
Sets prefix to be used for column ID. More... | |
void | enable_mangle_dupe_cols (bool val) |
Sets whether to rename duplicate column names. More... | |
void | set_use_cols_names (std::vector< std::string > col_names) |
Sets names of the columns to be read. More... | |
void | set_use_cols_indexes (std::vector< int > col_indices) |
Sets indexes of columns to read. More... | |
void | set_nrows (size_type nrows) |
Sets number of rows to read. More... | |
void | set_skiprows (size_type skiprows) |
Sets number of rows to skip from start. More... | |
void | set_skipfooter (size_type skipfooter) |
Sets number of rows to skip from end. More... | |
void | set_header (size_type hdr) |
Sets header row index. More... | |
void | set_lineterminator (char term) |
Sets line terminator. More... | |
void | set_delimiter (char delim) |
Sets field delimiter. More... | |
void | set_thousands (char val) |
Sets numeric data thousands separator. More... | |
void | set_decimal (char val) |
Sets decimal point character. More... | |
void | set_comment (char val) |
Sets comment line start character. More... | |
void | enable_windowslinetermination (bool val) |
Sets whether to treat \r\n as line terminator. More... | |
void | enable_delim_whitespace (bool val) |
Sets whether to treat whitespace as field delimiter. More... | |
void | enable_skipinitialspace (bool val) |
Sets whether to skip whitespace after the delimiter. More... | |
void | enable_skip_blank_lines (bool val) |
Sets whether to ignore empty lines or parse line values as invalid. More... | |
void | set_quoting (quote_style quoting) |
Sets the expected quoting style used in the input CSV data. More... | |
void | set_quotechar (char ch) |
Sets quoting character. More... | |
void | enable_doublequote (bool val) |
Sets a quote inside a value is double-quoted. More... | |
void | set_parse_dates (std::vector< std::string > col_names) |
Sets names of columns to read as datetime. More... | |
void | set_parse_dates (std::vector< int > col_indices) |
Sets indexes of columns to read as datetime. More... | |
void | set_parse_hex (std::vector< std::string > col_names) |
Sets names of columns to parse as hexadecimal. More... | |
void | set_parse_hex (std::vector< int > col_indices) |
Sets indexes of columns to parse as hexadecimal. More... | |
void | set_dtypes (std::map< std::string, data_type > types) |
Sets per-column types. More... | |
void | set_dtypes (std::vector< data_type > types) |
Sets per-column types. More... | |
void | set_true_values (std::vector< std::string > vals) |
Sets additional values to recognize as boolean true values. More... | |
void | set_false_values (std::vector< std::string > vals) |
Sets additional values to recognize as boolean false values. More... | |
void | set_na_values (std::vector< std::string > vals) |
Sets additional values to recognize as null values. More... | |
void | enable_keep_default_na (bool val) |
Sets whether to keep the built-in default NA values. More... | |
void | enable_na_filter (bool val) |
Sets whether to disable null filter. More... | |
void | enable_dayfirst (bool val) |
Sets whether to parse dates as DD/MM versus MM/DD. More... | |
void | set_timestamp_type (data_type type) |
Sets timestamp_type to which all timestamp columns will be cast. More... | |
Static Public Member Functions | |
static csv_reader_options_builder | builder (source_info src) |
Creates a csv_reader_options_builder which will build csv_reader_options . More... | |
Settings to use for read_csv()
.
|
default |
Default constructor.
This has been added since Cython requires a default constructor to create objects on stack.
|
static |
Creates a csv_reader_options_builder
which will build csv_reader_options
.
src | Source information to read csv file |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Sets the expected quoting style used in the input CSV data.
Note: Only the following quoting styles are supported:
quoting | Quoting style used |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |