public static Frame <K, string> FromRecords <K, R>(Series <K, R> series) { IEnumerable <Tuple <K, R> > tuples = (IEnumerable <Tuple <K, R> >) new FrameExtensions.keyValuePairs <K, R>(series, (Tuple <K, FSharpOption <R> >)null, (FSharpOption <R>)null, default(K), (IEnumerator <Tuple <K, FSharpOption <R> > >)null, 0, (Tuple <K, R>)null); Frame <int, string> frame = Reflection.convertRecordSequence <R>(SeqModule.Map <Tuple <K, R>, R>((FSharpFunc <M0, M1>) new FrameExtensions.recordsToConvert <K, R>(), (IEnumerable <M0>)tuples)); return(FrameModule.IndexRowsWith <K, int, string>((IEnumerable <K>)SeqModule.Map <Tuple <K, R>, K>((FSharpFunc <M0, M1>) new FrameExtensions.FromRecords <K, R>(), (IEnumerable <M0>)tuples), frame)); }
public static Frame <TNewRowIndex, C> IndexRowsWith <R, C, TNewRowIndex>(this Frame <R, C> frame, IEnumerable <TNewRowIndex> keys) { return(FrameModule.IndexRowsWith <TNewRowIndex, R, C>(keys, frame)); }