Signature Description Parameters

template<typename T>
std::vector<typename T> &
create_column(const char *name,
              bool do_lock = true);
        
It creates an empty column named “name”
Returns a reference to the vector for that column. If a column with the same name and type already exists, it retunrs a reference to it.
T: Type of the column
name: Name of the column
do_lock: This is used to optimize DataFrame internal library code. DataFrame users should always use the default.
    MyDataFrame         df;
    std::vector<int>    &col0 =
        df.create_column<int>(static_cast<const char *>("col_name"));
C++ DataFrame