11 options[
"truc1"] =
typeid(int);
24 std::cout << df.
columns << std::endl;;
25 std::cout << df.
index << std::endl;
28 std::cout << df.
shape << std::endl;
Helper for loading CSV files into a DataFrame.
Minimal tabular container with column-wise storage and CSV I/O.
CSV → DataFrame loader with basic type handling.
DataFrame read_csv(const std::string &filename, CSVOptions options=CSVOptions())
Read a CSV file and construct a DataFrame.
Simple column-oriented data structure with basic analysis utilities.
void print() const
Prints the DataFrame to std::cout in a tabular format.
DataFrame head(size_t n=5) const
Returns a new DataFrame with the first n rows.
void describe() const
Prints a summary for all numeric columns.
std::array< int, 2 > shape
Shape of the DataFrame: {nRows, nCols}.
Series< T > getColumn(const std::string &colName) const
Returns a copy of a column as a Series<T>.
void to_csv(const std::string &filename)
Serializes the DataFrame to a CSV file.
std::vector< std::string > index
Optional index labels for the rows (if set).
std::vector< std::string > columns
List of column names, in insertion order.
Options describing how to interpret or write CSV data.
std::type_index indexType
Type used for the DataFrame index.
bool hasIndex
True if the CSV representation contains a separate index column.