fslaborg / Deedle

Easy to use .NET library for data and time series manipulation and for scientific programming
http://fslab.org/Deedle/
BSD 2-Clause "Simplified" License
924 stars 197 forks source link

System.NotSupportedException: 'Dynamic invocation of op_Explicit is not supported' #457

Closed mennowo closed 5 years ago

mennowo commented 5 years ago

Hello, in a small C# program, this line of code gives the exception as stated in the issue: var rSeries = series.ResampleEquivalence(x => x.Hour, y => y.Mean()); I used nuget to add both the Deedle lib and Fsharp.Core to the project. I am unsure what this exception indicates: a problem with Deedle, or a problem with the way I am using the library? Any help is appreciated! Thanks, Menno

FoggyFinder commented 5 years ago

There is a bug in Deedle that related to using some functions from Stats module in C#. For now you can define your own function that calculates Mean and use it.

mennowo commented 5 years ago

@FoggyFinder Thanks for the swift response! Defining a custom mean method works well for now.