◆ allocate() [1/2]
static std::shared_ptr<DataFrameView> iolink::DataFrameViewFactory::allocate |
( |
| ) |
|
|
static |
This factory aims to create an empty DataFrame view.
Columns and rows can be added later.
◆ allocate() [2/2]
static std::shared_ptr<DataFrameView> iolink::DataFrameViewFactory::allocate |
( |
const Vector2u64 & |
shape, |
|
|
const std::string * |
columnNames, |
|
|
const DataType * |
columnDataTypes |
|
) |
| |
|
static |
This factory is aimed at creating a DataFrame view.
- Parameters
-
shape | shape of the allocated dataframe (column count, row count) |
columnNames | Array which contains the name for each column |
columnDataTypes | Array which contains the data type of each column |
- Returns
- an in-memory DataFrameView
- Warning
- No check is done on inputs. Pass arguments very carefully. columnNames and columnDataTypes shall have the same element count, and their size must be equal to shape[0].
-
column count and row count cannot be 0. To create an empty dataframe, use the parameterless allocate method.
The documentation for this class was generated from the following file: