//---------------------------------------------------------------------------- public static Frame<DateTime, object> setDateTimeIndex(Frame<int, object> df) //---------------------------------------------------------------------------- { return df.IndexRowsUsing(srs => srs.GetAs<DateTime>("date")).SortRows("date"); }