All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.ggdsl.dataframe.data.LazyGroupedDataFrame.kt Maven / Gradle / Ivy

There is a newer version: 0.3.2-dev-7
Show newest version
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