DataRowImpl

internal open class DataRowImpl<T>(index: Int, df: DataFrame<T>) : DataRow<T>

Inheritors

Constructors

Link copied to clipboard
constructor(index: Int, df: DataFrame<T>)

Properties

Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_count")
val DataRow<ColumnDescription?>.count: Int?
@get:JvmName(name = "ColumnDescription_count")
val DataRow<ColumnDescription>.count: Int
@get:JvmName(name = "NullableValueCount_count")
val DataRow<ValueCount?>.count: Int?
@get:JvmName(name = "ValueCount_count")
val DataRow<ValueCount>.count: Int
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_freq")
val DataRow<ColumnDescription?>.freq: Int?
@get:JvmName(name = "ColumnDescription_freq")
val DataRow<ColumnDescription>.freq: Int
Link copied to clipboard
internal val AnyRow.index: Int
Link copied to clipboard
@get:JvmName(name = "NullableKeyValueProperty_key")
val DataRow<KeyValueProperty<*>?>.key: String?
@get:JvmName(name = "KeyValueProperty_key")
val DataRow<KeyValueProperty<*>>.key: String
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_max")
val DataRow<ColumnDescription?>.max: Any?
@get:JvmName(name = "ColumnDescription_max")
val DataRow<ColumnDescription>.max: Any
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_mean")
val DataRow<ColumnDescription?>.mean: Double?
@get:JvmName(name = "ColumnDescription_mean")
val DataRow<ColumnDescription>.mean: Double
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_median")
val DataRow<ColumnDescription?>.median: Any?
@get:JvmName(name = "ColumnDescription_median")
val DataRow<ColumnDescription>.median: Any
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_min")
val DataRow<ColumnDescription?>.min: Any?
@get:JvmName(name = "ColumnDescription_min")
val DataRow<ColumnDescription>.min: Any
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_name")
val DataRow<ColumnDescription?>.name: String?
@get:JvmName(name = "ColumnDescription_name")
val DataRow<ColumnDescription>.name: String
@get:JvmName(name = "NameValuePairAny_name")
val DataRow<NameValuePair<*>>.name: String
@get:JvmName(name = "NullableNameValuePair_name")
val <V> DataRow<NameValuePair<V>?>.name: String?
@get:JvmName(name = "NameValuePair_name")
val <V> DataRow<NameValuePair<V>>.name: String
@get:JvmName(name = "NullableNameValueProperty_name")
val <T> DataRow<NameValueProperty<T>?>.name: String?
@get:JvmName(name = "NameValueProperty_name")
val <T> DataRow<NameValueProperty<T>>.name: String

@get:JvmName(name = "NullableKeyValueProperty_name")
val DataRow<KeyValueProperty<*>?>.name: String?
@get:JvmName(name = "KeyValueProperty_name")
val DataRow<KeyValueProperty<*>>.name: String

Accesses the 'key' value of this KeyValueProperty DataRow.

Link copied to clipboard
internal val <T> DataRow<T>.next: DataRow<T>?
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_nulls")
val DataRow<ColumnDescription?>.nulls: Int?
@get:JvmName(name = "ColumnDescription_nulls")
val DataRow<ColumnDescription>.nulls: Int
Link copied to clipboard
internal val <T> DataRow<T>.owner: DataFrame<T>
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_p25")
val DataRow<ColumnDescription?>.p25: Any?
@get:JvmName(name = "ColumnDescription_p25")
val DataRow<ColumnDescription>.p25: Any
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_p75")
val DataRow<ColumnDescription?>.p75: Any?
@get:JvmName(name = "ColumnDescription_p75")
val DataRow<ColumnDescription>.p75: Any
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_path")
val DataRow<ColumnDescription?>.path: ColumnPath?
@get:JvmName(name = "ColumnDescription_path")
val DataRow<ColumnDescription>.path: ColumnPath
Link copied to clipboard
internal val <T> DataRow<T>.prev: DataRow<T>?
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_std")
val DataRow<ColumnDescription?>.std: Double?
@get:JvmName(name = "ColumnDescription_std")
val DataRow<ColumnDescription>.std: Double
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_top")
val DataRow<ColumnDescription?>.top: Any?
@get:JvmName(name = "ColumnDescription_top")
val DataRow<ColumnDescription>.top: Any
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_type")
val DataRow<ColumnDescription?>.type: String?
@get:JvmName(name = "ColumnDescription_type")
val DataRow<ColumnDescription>.type: String
Link copied to clipboard
@get:JvmName(name = "NullableColumnDescription_unique")
val DataRow<ColumnDescription?>.unique: Int?
@get:JvmName(name = "ColumnDescription_unique")
val DataRow<ColumnDescription>.unique: Int
Link copied to clipboard
@get:JvmName(name = "NullableKeyValueProperty_value")
val <T> DataRow<KeyValueProperty<T>?>.value: T?
@get:JvmName(name = "KeyValueProperty_value")
val <T> DataRow<KeyValueProperty<T>>.value: T
@get:JvmName(name = "NameValuePairAny_value")
val DataRow<NameValuePair<*>>.value: Any?
@get:JvmName(name = "NullableNameValuePair_value")
val <V> DataRow<NameValuePair<V>?>.value: V?
@get:JvmName(name = "NameValuePair_value")
val <V> DataRow<NameValuePair<V>>.value: V
@get:JvmName(name = "NullableNameValueProperty_value")
val <T> DataRow<NameValueProperty<T>?>.value: T?
@get:JvmName(name = "NameValueProperty_value")
val <T> DataRow<NameValueProperty<T>>.value: T
@get:JvmName(name = "NullableValueProperty_value")
val <T> DataRow<ValueProperty<T>?>.value: T?
@get:JvmName(name = "ValueProperty_value")
val <T> DataRow<ValueProperty<T>>.value: T
Link copied to clipboard
internal val AnyRow.values: List<Any?>

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> DataRow<*>.cast(): DataRow<T>
inline fun <reified T> DataRow<*>.cast(verify: Boolean = true): DataRow<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator fun <R : Comparable<R>> ColumnReference<R>.compareTo(other: R): Int
Link copied to clipboard
fun <T> DataRow<T>.concat(vararg rows: DataRow<T>): DataFrame<T>

Returns a DataFrame containing this DataRow followed by rows.

Link copied to clipboard
operator fun DataRow<*>.contains(column: KProperty<*>): Boolean
operator fun DataRow<*>.contains(column: ColumnReference<*>): Boolean
Link copied to clipboard
fun DataRow<*>.containsKey(columnName: String): Boolean
fun DataRow<*>.containsKey(column: KProperty<*>): Boolean
Link copied to clipboard
fun DataRow<*>.count(): Int

Returns the number of columns in this DataRow.

inline fun DataRow<*>.count(predicate: Predicate<Any?>): Int

Counts the number of elements in the current row that satisfy the given predicate.

Link copied to clipboard
open override fun df(): DataFrame<T>
Link copied to clipboard
inline fun <T> DataRow<T>.diff(firstRowResult: Double, expression: RowExpression<T, Double>): Double
inline fun <T> DataRow<T>.diff(firstRowResult: Float, expression: RowExpression<T, Float>): Float
inline fun <T> DataRow<T>.diff(firstRowResult: Int, expression: RowExpression<T, Int>): Int
inline fun <T> DataRow<T>.diff(firstRowResult: Long, expression: RowExpression<T, Long>): Long

Calculates the difference between the results of a row expression computed on the current and previous DataRow.

Link copied to clipboard
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Double>): Double?
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Float>): Float?
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Int>): Int?
inline fun <T> DataRow<T>.diffOrNull(expression: RowExpression<T, Long>): Long?

Calculates the difference between the results of a row expression computed on the current and previous DataRow.

Link copied to clipboard
open operator fun ColumnReference<Double>.div(a: Double): Double
open operator fun ColumnReference<Double>.div(a: Int): Double
open operator fun ColumnReference<Double>.div(a: Long): Double
open operator fun ColumnReference<Int>.div(a: Int): Int
open operator fun ColumnReference<Long>.div(a: Int): Long
open operator fun ColumnReference<Long>.div(a: Long): Long
Link copied to clipboard

Returns a DataFrame with n rows, each of them a copy of this DataRow.

Link copied to clipboard
internal fun <T> DataRow<T>.duplicateImpl(n: Int): DataFrame<T>
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
fun <T> DataRow<T>.explode(dropEmpty: Boolean = true, columns: ColumnsSelector<T, *> = defaultExplodeColumns): DataFrame<T>
fun <T> DataRow<T>.explode(vararg columns: String, dropEmpty: Boolean = true): DataFrame<T>

Splits list-like values in the specified columns of this DataRow and spreads them vertically — that is, it adds a separate row for each element (one value per row) and combines them into a new DataFrame. Values in all other columns are duplicated to preserve row context.

fun <T, C> DataRow<T>.explode(vararg columns: KProperty<C>, dropEmpty: Boolean = true): DataFrame<T>
fun <T, C> DataRow<T>.explode(vararg columns: ColumnReference<C>, dropEmpty: Boolean = true): DataFrame<T>
Link copied to clipboard
Link copied to clipboard
open operator fun <R> get(expression: RowExpression<T, R>): R
open operator fun <R> get(columns: List<ColumnReference<R>>): List<R>
open operator fun <R> get(property: KProperty<R>): R
open operator fun get(path: ColumnPath): Any?
open operator fun String.get(vararg path: String): ColumnPath
open operator fun get(first: String, vararg other: String): DataRow<T>
open operator fun get(first: ColumnReference<*>, vararg other: ColumnReference<*>): DataRow<T>
open operator override fun get(columnIndex: Int): Any?
open operator override fun get(name: String): Any?
open operator override fun <R> get(column: ColumnReference<R>): R
Link copied to clipboard
open fun getColumnGroup(columnName: String): AnyRow
Link copied to clipboard
open fun getFrameColumn(columnName: String): AnyFrame
Link copied to clipboard
open override fun getOrNull(name: String): Any?
Link copied to clipboard
fun <T> DataRow<T>.getRow(index: Int): DataRow<T>
Link copied to clipboard
fun <T> DataRow<T>.getRowOrNull(index: Int): DataRow<T>?
Link copied to clipboard
fun <T> DataRow<T>.getRows(indices: Iterable<Int>): DataFrame<T>
fun <T> DataRow<T>.getRows(indices: IntRange): DataFrame<T>
Link copied to clipboard
fun <T> DataRow<*>.getValue(columnName: String): T
fun <T> DataRow<*>.getValue(column: KProperty<T>): T
fun <T> DataRow<*>.getValue(column: ColumnReference<T>): T
Link copied to clipboard
open override fun <R> getValueOrNull(column: ColumnReference<R>): R?
Link copied to clipboard
fun <T> DataRow<*>.getValueOrNull(columnName: String): T?
fun <T> DataRow<*>.getValueOrNull(column: KProperty<T>): T?
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun index(): Int
Link copied to clipboard
open operator fun <R> String.invoke(): R
open operator fun <R> ColumnPath.invoke(): R
open operator fun <R> ColumnReference<R>.invoke(): R
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open operator fun Double.minus(col: ColumnReference<Double>): Double
open operator fun Int.minus(col: ColumnReference<Int>): Int
open operator fun Long.minus(col: ColumnReference<Long>): Long
open operator fun ColumnReference<Double>.minus(a: Double): Double
open operator fun ColumnReference<Int>.minus(a: Int): Int
open operator fun ColumnReference<Long>.minus(a: Long): Long
Link copied to clipboard
inline fun <T> DataRow<T>.movingAverage(k: Int, expression: RowExpression<T, Number>): Double
Link copied to clipboard
Link copied to clipboard
inline fun <reified R> DataRow<*>.namedValuesOf(): List<NameValuePair<R>>
Link copied to clipboard
fun <T> DataRow<T>.next(): DataRow<T>?

Returns the next row in the DataFrame relative to the current row. If the current row is the last row in the DataFrame, it returns null.

Link copied to clipboard
open operator fun Double.plus(col: ColumnReference<Double>): Double
open operator fun Int.plus(col: ColumnReference<Int>): Int
open operator fun Long.plus(col: ColumnReference<Long>): Long
open operator fun ColumnReference<Double>.plus(a: Double): Double
open operator fun ColumnReference<Int>.plus(a: Int): Int
open operator fun ColumnReference<Long>.plus(a: Long): Long
open operator fun ColumnReference<String>.plus(a: String): String
Link copied to clipboard
fun <T> DataRow<T>.prev(): DataRow<T>?

Returns the previous row in the DataFrame relative to the current row. If the current row is the first row in the DataFrame, it returns null.

Link copied to clipboard
fun <T> DataRow<T>.print()
Link copied to clipboard
fun <T> DataRow<T>.relative(relativeIndices: Iterable<Int>): DataFrame<T>
fun <T> DataRow<T>.relative(relativeIndices: IntRange): DataFrame<T>
Link copied to clipboard
internal fun AnyRow.renderToString(decimalFormat: RendererDecimalFormat = RendererDecimalFormat.DEFAULT): String
Link copied to clipboard
internal fun AnyRow.renderToStringTable(forHtml: Boolean = false): String
Link copied to clipboard
Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowMaxOf(skipNaN: Boolean = skipNaNDefault): T

Returns the maximum of the values of type T in this DataRow.

Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowMaxOfOrNull(skipNaN: Boolean = skipNaNDefault): T?

Returns the maximum of the values of type T in this DataRow, or null if there is nothing to compare.

Link copied to clipboard
Link copied to clipboard
fun DataRow<*>.rowMean(skipNaN: Boolean = skipNaNDefault): Double

Returns the mean of all the numbers in this DataRow, as a Double.

Link copied to clipboard
inline fun <reified T : Number> DataRow<*>.rowMeanOf(skipNaN: Boolean = skipNaNDefault): Double

Returns the mean of the values of type T in this DataRow, as a Double.

Link copied to clipboard
Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowMedianOf(): T

Returns the median of the comparable values of type T in this DataRow.

inline fun <reified T : Comparable<T>, Number> DataRow<*>.rowMedianOf(skipNaN: Boolean = skipNaNDefault): Double

Returns the median of the numbers of type T in this DataRow, as a Double.

Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowMedianOfOrNull(): T?

Returns the median of the comparable values of type T in this DataRow, or null if there is nothing to compute the median of.

inline fun <reified T : Comparable<T>, Number> DataRow<*>.rowMedianOfOrNull(skipNaN: Boolean = skipNaNDefault): Double?

Returns the median of the numbers of type T in this DataRow, as a Double, or null if there is nothing to compute the median of.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowMinOf(skipNaN: Boolean = skipNaNDefault): T

Returns the minimum of the values of type T in this DataRow.

Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowMinOfOrNull(skipNaN: Boolean = skipNaNDefault): T?

Returns the minimum of the values of type T in this DataRow, or null if there is nothing to compare.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowPercentileOf(percentile: Double): T

Returns the given percentile of the comparable values of type T in this DataRow.

inline fun <reified T : Comparable<T>, Number> DataRow<*>.rowPercentileOf(percentile: Double, skipNaN: Boolean = skipNaNDefault): Double

Returns the given percentile of the numbers of type T in this DataRow, as a Double.

Link copied to clipboard
inline fun <reified T : Comparable<T>> DataRow<*>.rowPercentileOfOrNull(percentile: Double): T?

Returns the given percentile of the comparable values of type T in this DataRow, or null if there is nothing to compute the percentile of.

inline fun <reified T : Comparable<T>, Number> DataRow<*>.rowPercentileOfOrNull(percentile: Double, skipNaN: Boolean = skipNaNDefault): Double?

Returns the given percentile of the numbers of type T in this DataRow, as a Double, or null if there is nothing to compute the percentile of.

Link copied to clipboard
Link copied to clipboard
fun DataRow<*>.rowStd(skipNaN: Boolean = skipNaNDefault, ddof: Int = ddofDefault): Double

Returns the standard deviation of all the numbers in this DataRow, as a Double.

Link copied to clipboard
inline fun <reified T : Number?> DataRow<*>.rowStdOf(skipNaN: Boolean = skipNaNDefault, ddof: Int = ddofDefault): Double

Returns the standard deviation of the values of type T in this DataRow, as a Double.

Link copied to clipboard
fun DataRow<*>.rowSum(skipNaN: Boolean = skipNaNDefault): Number

Returns the sum of all the numbers in this DataRow.

Link copied to clipboard
@JvmName(name = "rowSumOfByte")
inline fun <reified T : Byte> DataRow<*>.rowSumOf(_kClass: KClass<Byte> = Byte::class): Int

Returns the sum of the Byte values in this DataRow, as an Int.

@JvmName(name = "rowSumOfInt")
inline fun <reified T : Int> DataRow<*>.rowSumOf(_kClass: KClass<Int> = Int::class): Int

Returns the sum of the Int values in this DataRow.

@JvmName(name = "rowSumOfLong")
inline fun <reified T : Long> DataRow<*>.rowSumOf(_kClass: KClass<Long> = Long::class): Long

Returns the sum of the Long values in this DataRow.

@JvmName(name = "rowSumOfShort")
inline fun <reified T : Short> DataRow<*>.rowSumOf(_kClass: KClass<Short> = Short::class): Int

Returns the sum of the Short values in this DataRow, as an Int.

@JvmName(name = "rowSumOfDouble")
inline fun <reified T : Double> DataRow<*>.rowSumOf(skipNaN: Boolean = skipNaNDefault, _kClass: KClass<Double> = Double::class): Double

Returns the sum of the Double values in this DataRow.

@JvmName(name = "rowSumOfFloat")
inline fun <reified T : Float> DataRow<*>.rowSumOf(skipNaN: Boolean = skipNaNDefault, _kClass: KClass<Float> = Float::class): Float

Returns the sum of the Float values in this DataRow.

fun DataRow<*>.rowSumOf(type: KType, skipNaN: Boolean = skipNaNDefault): Number

Returns the sum of the values of the given type in this DataRow.

Link copied to clipboard

Returns the runtime DataFrameSchema of the DataFrame this row is part of.

Link copied to clipboard
open operator fun ColumnReference<Double>.times(a: Double): Double
open operator fun ColumnReference<Double>.times(a: Int): Double
open operator fun ColumnReference<Double>.times(a: Long): Double
open operator fun ColumnReference<Int>.times(a: Int): Int
open operator fun ColumnReference<Long>.times(a: Int): Long
open operator fun ColumnReference<Long>.times(a: Long): Long
Link copied to clipboard
Link copied to clipboard
fun DataRow<*>.toMap(): Map<String, Any?>
Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Converts this DataRow into a DataFrame with one row per column of the original row.

Link copied to clipboard
inline fun <reified T> DataRow<*>.transposeTo(): DataFrame<NameValuePair<T>>

Converts this DataRow into a DataFrame with one row per column of the original row.

Implementation of the public transposeTo that takes the target type explicitly instead of as a reified type parameter.

Link copied to clipboard
open override fun values(): List<Any?>
Link copied to clipboard
inline fun <reified R> DataRow<*>.valuesOf(): List<R>