Kotlin / dataframe

Structured data processing in Kotlin
https://kotlin.github.io/dataframe/overview.html
Apache License 2.0
761 stars 48 forks source link

`df.std()` does not infer types of generated columns #727

Closed Jolanrensen closed 3 weeks ago

Jolanrensen commented 3 weeks ago

df.std() does not infer types of generated columns.

An example can be found in this notebook: https://gist.github.com/Jolanrensen/c078d45c78ff7057598b40cb9c40b368

The standard deviation of Int columns results in a Double, but DataFrame assumes the type of columns stays the same after the operation.

Patching this fixes 7/15 tests in https://github.com/Kotlin/dataframe/issues/713