Peter
11/21/2021, 10:49 AMfun DataFrame<???>.myMethod() = filter { some_column == "Yes" }
So the question is how to get the required type since the dataframe schema is automatically generated based on the data found in the CSV file.Ilya Muradyan
11/21/2021, 3:33 PMIlya Muradyan
11/21/2021, 3:37 PMIlya Muradyan
11/21/2021, 4:16 PM@OptIn(kotlin.ExperimentalStdlibApi::class)
inline fun <reified T> DataFrame<T>.dtype(): kotlin.reflect.KType = kotlin.reflect.typeOf<T>()
And then just call it this way:Peter
11/21/2021, 5:03 PMIlya Muradyan
11/22/2021, 2:50 PM@DataSchema
, and all "compatible" dataframes will implement it. See example. Maybe it's even better than use implicitly generated typesholgerbrandl
11/29/2021, 9:00 PMIlya Muradyan
11/29/2021, 9:40 PMNikita Klimenko [JB]
12/02/2021, 6:31 PMFSharp.Data
type provider in terms of functionality. I would love to hear any feedback so we can polish plugin UX 🙂holgerbrandl
12/02/2021, 10:48 PM