tables::table
template <typename... Ts>
requires ( is_key_value_pairs<Ts...> )
class table;
Container of column(s). Container is a compile-time associative map of lookup-types, to column<Pi>.
Member types.
Member type | Definition |
---|---|
ts_t |
Tuple of lookup-types representing columns. |
ps_t |
Tuple of primitive-types. |
zs_t |
Tuple of (lookup-type,primitive-type) pairs. |
Table type |
|
cols_t |
mtuple of (Ii,column<Pi>). |
row_t |
row of (Ii,Pi). |
add_t<T> |
Table type obtained by adding lookup-type to table_t |
select_t<Ts> |
Table type obtained by selecting lookup-type(s) from table_t |
Member functions
Constructors / Assignment
Member type | Definition |
---|---|
Constructos the table. |
|
Assigns values to the table. |
Accessors
Member type | Definition |
---|---|
Returns underlying column |
|
Assign values to row in table. |
Elements
Member type | Definition |
---|---|
Returns table with the rows at given indices. |
|
Returns the row at given row index. |
|
Returns table containing first n rows. |
|
Returns table with first n rows dropped. |
|
Returns table containing last n rows. |
|
Returns table with last n rows dropped. |
Append
Member type | Definition |
---|---|
Returns table with appended rows or table. |
|
Append row to existing table. |
Select, add, and remove columns
Member type | Definition |
---|---|
Returns table with selected columns |
|
Returns table with columns removed. |
|
Returns table with columns added. |
|
Returns table with columns added or updated if lookup-type already exists. |
Update
Member type | Definition |
---|---|
Update selected columns |
|
Update selected columns at given rows. |
|
Update selected columns ignoring nones. |
Joins
Member type | Definition |
---|---|
Returns table resulting from a union join. |
|
Returns table resulting from a left join. |
|
Returns table resulting from an inner join. |
|
Returns table resulting from an asof join. |
Transform
Member type | Definition |
---|---|
Returns table containing all items except specified rows. |
|
Returns table with columns reversed. |
|
Returns table with nones replaced. |
|
Returns table with column replaced with differences of each item with its predecessor. |
|
Returns column of bool_t: true if consecutive rows differ, otherwise false. |
|
Returns table with unique rows in order of first occurrence. |
|
Returns a sorted table in ascending order. |
|
Returns a sorted table in ascending order using values in specified column(s). |
|
Returns a sorted table in descending order using values in specified column(s). |
Aggregate
Member type | Definition |
---|---|
Returns minimum/maximum rows. |
|
Returns the summation of rows. |
|
Returns the arithmetic mean. |
Comparison
Member type | Definition |
---|---|
Returns table containing element-wise equality/inequality comparison between two tables. |
|
Returns table containing element-wise less-than/less-or-equal comparison between two tables. |
|
Returns table containing element-wise greater-than/greater-or-equal comparison between two tables. |