template<typename T, typename V>
DataFrame
transpose(IndexVecType &&indices, const V ¤t_col_order, const V &new_col_names) const;
|
It transposes the data in the DataFrame.
The transpose() is only defined for DataFrame's that have a single data type.
NOTE: Since DataFrame columns have no ordering, the user must specify the order with current_col_order.
|
T: The single type for all data columns
V: The type of string vector specifying the new names for new columns after transpose
indices: A vector on indices for the new transposed DataFrame. Its length must equal the number of rows in this DataFrame. Otherwise an exception is thrown
current_col_order: A vector of strings specifying the order of columns in the original DataFrame.
new_col_names: A vector of strings, specifying the column names for the new transposed DataFrame. Its length must equal the number of rows in this DataFrame. Otherwise an exception is thrown
|