Signature Description Parameters
template<typename T, typename ITR>
size_type
load_column(const char *name, Index2D<const ITR &> range, nan_policy padding = nan_policy::pad_with_nans);
It copies the data from iterators begin to end to the named column. If column does not exist, it will be created. If the column exist, it will be over written.
Returns number of items loaded
T: Type of data being copied
ITR: Type of the iterator
name: Name of the column
range: The begin and end iterators for data
padding: If true, it pads the data column with nan if it is shorter than the index column.
template<typename>
size_type
load_column(const char *name, std::vector<T> &&data, nan_policy padding = nan_policy::pad_with_nans);
It moves the data to the named column in DataFrame. If column does not exist, it will be created. If the column exist, it will be over written.
Returns number of items loaded
T: Type of data being copied
ITR: Type of the iterator
name: Name of the column
range: The begin and end iterators for data
padding: If true, it pads the data column with nan if it is shorter than the index column.
template<typename>
size_type
load_column(const char *name, const std::vector<T> &data, nan_policy padding = nan_policy::pad_with_nans);
It copies the data to the named column in DataFrame. If column does not exist, it will be created. If the column exist, it will be over written.
Returns number of items loaded
T: Type of data being copied
ITR: Type of the iterator
name: Name of the column
range: The begin and end iterators for data
padding: If true, it pads the data column with nan if it is shorter than the index column.