You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please check the FAQ documentation before raising an issue
Describe the bug (required)
The merge method of DataSet exist bug:
colNames insert at the end position of origin colNames;
rowValues insert at the begin position of origin rowValues;
// merge two DataSet Horizontally with same row count
bool merge(DataSet&& o) {
if (rowSize() != o.rowSize()) {
return false;
}
auto newColSize = colSize() + o.colSize();
colNames.reserve(newColSize);
// at end
colNames.insert(colNames.end(),
std::make_move_iterator(o.colNames.begin()),
std::make_move_iterator(o.colNames.end()));
for (std::size_t i = 0; i < rowSize(); ++i) {
rows[i].values.reserve(newColSize);
// at begin
rows[i].values.insert(rows[i].values.begin(),
std::make_move_iterator(o.rows[i].values.begin()),
std::make_move_iterator(o.rows[i].values.end()));
}
return true;
}
Please check the FAQ documentation before raising an issue
Describe the bug (required)
The merge method of DataSet exist bug:
Your Environments (required)
uname -a
g++ --version
orclang++ --version
lscpu
a3ffc7d8
)How To Reproduce(required)
Steps to reproduce the behavior:
Expected behavior
data1 should be
Actual behavior
data1 is
Additional context
The text was updated successfully, but these errors were encountered: