Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Select not supported" for GetRowsAs<'T> #545

Open
brianberns opened this issue Feb 6, 2022 · 0 comments
Open

"Select not supported" for GetRowsAs<'T> #545

brianberns opened this issue Feb 6, 2022 · 0 comments

Comments

@brianberns
Copy link

brianberns commented Feb 6, 2022

Consider the following code:

type IRecord =
    abstract member MyString : string
    abstract member MyInt : int

let df =
    Frame.ofRecords [
        {| MyString = "One"; MyInt = "1" |}
        {| MyString = "Two"; MyInt = "2" |}
    ]
let series =
    df.GetRowsAs<IRecord>()
        |> Series.mapValues id

I would expect this to run successfully, but instead it results in the following exception:

Unhandled exception. System.Exception: mapFrameRowVector: Select not supported
   at [email protected]<'TRow>.Select[a](FSharpFunc`2 g) in src\Deedle\Vectors\VectorHelpers.fs:line 522
   at Deedle.Series`2.SelectOptional[R](Func`2 f) in src\Deedle\Series.fs:line 415
   at Deedle.Series`2.Select[R](Func`2 f) in src\Deedle\Series.fs:line 399
   at Deedle.SeriesModule.MapValues[T,R,K](FSharpFunc`2 f, Series`2 series) in src\Deedle\SeriesModule.fs:line 462
   at <StartupCode$DeedleTest>.$Program.main@() in Program.fs:line 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant