org.jetbrains.kotlinx.ggdsl.dataframe.data.LazyGroupedDataFrame.kt Maven / Gradle / Ivy
package org.jetbrains.kotlinx.ggdsl.dataframe.data
import kotlinx.serialization.Serializable
import org.jetbrains.kotlinx.dataframe.api.groupBy
import org.jetbrains.kotlinx.ggdsl.ir.data.LazyGroupedDataInterface
/**
* Lazy grouping implementation for [DataFrameWrapper].
*/
@Serializable
public data class LazyGroupedDataFrame(
override val keys: List,
override val origin: DataFrameWrapper,
) : LazyGroupedDataInterface {
override fun count(): GroupedByWrapper = GroupedByWrapper(origin.df.groupBy(cols = keys.toTypedArray()))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy