Given an empty python datatable frame empty_dt = dt.Frame(names= list_features)
.
How can I add (append) one row at a time to it, (like in pandas dataframe in this question)
Thanks.
Given an empty python datatable frame empty_dt = dt.Frame(names= list_features)
.
How can I add (append) one row at a time to it, (like in pandas dataframe in this question)
Thanks.
You can create a new 1-row datatable for each row and then append it using rbind
.
for row in datasource:
r = dt.Frame(row, names=list_features)
empty_dt.rbind(r)