public static Frame CreateFrame(DateTime[] values, string colName) { DFColumn[] cols = new DFColumn[1]; cols[0] = new DFDateTimeColumn(colName, values); Frame frame = new Frame(Guid.NewGuid(), cols); return frame; }
public static DFDateTimeColumn CreateDateTimeCol(string name, int rowCount) { DateTime[] data = new DateTime[rowCount]; for (int i = 0; i < rowCount; i++) { data[i] = DateTime.Now; } DFDateTimeColumn col = new DFDateTimeColumn(name, data); return col; }
public static Frame CreateFrame(DateTime[] values, DateTime[] values2) { DFColumn[] cols = new DFColumn[2]; cols[0] = new DFDateTimeColumn("col 0", values); cols[1] = new DFDateTimeColumn("col 1", values2); Frame frame = new Frame(Guid.NewGuid(), cols); return frame; }