public static DFBoolColumn CreateBoolCol(string name, int rowCount) { bool[] data = new bool[rowCount]; for (int i = 0; i < rowCount; i++) { data[i] = Convert.ToBoolean(i % 1); } DFBoolColumn col = new DFBoolColumn(name, data); return col; }
public static Frame CreateFrame(bool[] values, string colName) { DFColumn[] cols = new DFColumn[1]; cols[0] = new DFBoolColumn(colName, values); Frame frame = new Frame(Guid.NewGuid(), cols); return frame; }
public static Frame CreateFrame(double[] values, bool[] values1, int[] values2) { DFColumn[] cols = new DFColumn[3]; cols[0] = new DFNumericColumn("col 0", values); cols[1] = new DFBoolColumn("col 1", values1); cols[2] = new DFIntColumn("col 2", values2); Frame frame = new Frame(Guid.NewGuid(), cols); return frame; }
public static Frame CreateFrame(bool[] values, bool[] values2) { DFColumn[] cols = new DFColumn[2]; cols[0] = new DFBoolColumn("col 0", values); cols[1] = new DFBoolColumn("col 1", values2); Frame frame = new Frame(Guid.NewGuid(), cols); return frame; }