@@ -285,7 +285,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
285
285
* @throws [NoSuchElementException] if no column adheres to the given [condition].
286
286
* @see [last]
287
287
*/
288
- public fun SingleColumn<AnyRow >.first (condition : ColumnFilter <* > = { true }): SingleColumn <* > =
288
+ public fun SingleColumn <* >.first (condition : ColumnFilter <* > = { true }): SingleColumn <* > =
289
289
all().first(condition)
290
290
291
291
/* *
@@ -388,7 +388,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
388
388
* @throws [NoSuchElementException] if no column adheres to the given [condition].
389
389
* @see [first]
390
390
*/
391
- public fun SingleColumn<AnyRow >.last (condition : ColumnFilter <* > = { true }): SingleColumn <* > =
391
+ public fun SingleColumn <* >.last (condition : ColumnFilter <* > = { true }): SingleColumn <* > =
392
392
all().last(condition)
393
393
394
394
/* *
@@ -491,7 +491,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
491
491
* @throws [NoSuchElementException] if no column adheres to the given [condition].
492
492
* @throws [IllegalArgumentException] if more than one column adheres to the given [condition].
493
493
*/
494
- public fun SingleColumn<AnyRow >.single (condition : ColumnFilter <* > = { true }): SingleColumn <* > =
494
+ public fun SingleColumn <* >.single (condition : ColumnFilter <* > = { true }): SingleColumn <* > =
495
495
all().single(condition)
496
496
497
497
/* *
@@ -1053,7 +1053,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
1053
1053
*/
1054
1054
public fun <C > ColumnGroupReference.col (property : KProperty <C >): ColumnAccessor <C > = column(property)
1055
1055
1056
- public fun SingleColumn<AnyRow >.col (index : Int ): SingleColumn <Any ?> = getChildrenAt(index).singleImpl()
1056
+ public fun SingleColumn <* >.col (index : Int ): SingleColumn <Any ?> = getChildrenAt(index).singleImpl()
1057
1057
1058
1058
public operator fun <C > ColumnSet<C>.get (index : Int ): SingleColumn <C > = getAt(index)
1059
1059
@@ -1946,7 +1946,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
1946
1946
* @param [predicate] A [ColumnFilter function][org.jetbrains.kotlinx.dataframe.ColumnFilter] that takes a [ColumnReference][org.jetbrains.kotlinx.dataframe.columns.ColumnReference] and returns a [Boolean].
1947
1947
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that match the given [predicate].
1948
1948
*/
1949
- public fun SingleColumn<AnyRow >.cols (
1949
+ public fun SingleColumn <* >.cols (
1950
1950
predicate : ColumnFilter <* > = { true },
1951
1951
): ColumnSet <* > = colsInternal(predicate)
1952
1952
@@ -1992,7 +1992,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
1992
1992
* @param [predicate] A [ColumnFilter function][org.jetbrains.kotlinx.dataframe.ColumnFilter] that takes a [ColumnReference][org.jetbrains.kotlinx.dataframe.columns.ColumnReference] and returns a [Boolean].
1993
1993
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that match the given [predicate].
1994
1994
*/
1995
- public operator fun SingleColumn<AnyRow >.get (
1995
+ public operator fun SingleColumn <* >.get (
1996
1996
predicate : ColumnFilter <* > = { true },
1997
1997
): ColumnSet <Any ?> = cols(predicate)
1998
1998
@@ -2479,7 +2479,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
2479
2479
* @param [otherCols] Optional additional [ColumnReference][org.jetbrains.kotlinx.dataframe.columns.ColumnReference]s that point to columns.
2480
2480
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that [firstCol] and [otherCols] point to.
2481
2481
*/
2482
- public fun <C > SingleColumn<AnyRow >.cols (
2482
+ public fun <C > SingleColumn <* >.cols (
2483
2483
firstCol : ColumnReference <C >,
2484
2484
vararg otherCols : ColumnReference <C >,
2485
2485
): ColumnSet <C > = headPlusArray(firstCol, otherCols).let { refs ->
@@ -2524,7 +2524,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
2524
2524
* @param [otherCols] Optional additional [ColumnReference][org.jetbrains.kotlinx.dataframe.columns.ColumnReference]s that point to columns.
2525
2525
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that [firstCol] and [otherCols] point to.
2526
2526
*/
2527
- public operator fun <C > SingleColumn<AnyRow >.get (
2527
+ public operator fun <C > SingleColumn <* >.get (
2528
2528
firstCol : ColumnReference <C >,
2529
2529
vararg otherCols : ColumnReference <C >,
2530
2530
): ColumnSet <C > = cols(firstCol, * otherCols)
@@ -2989,7 +2989,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
2989
2989
* @param [otherCols] Optional additional [String]s that point to columns.
2990
2990
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that [firstCol] and [otherCols] point to.
2991
2991
*/
2992
- public fun SingleColumn<AnyRow >.cols (
2992
+ public fun SingleColumn <* >.cols (
2993
2993
firstCol : String ,
2994
2994
vararg otherCols : String ,
2995
2995
): ColumnSet <* > = headPlusArray(firstCol, otherCols).let { names ->
@@ -3030,7 +3030,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3030
3030
* @param [otherCols] Optional additional [String]s that point to columns.
3031
3031
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that [firstCol] and [otherCols] point to.
3032
3032
*/
3033
- public operator fun SingleColumn<AnyRow >.get (
3033
+ public operator fun SingleColumn <* >.get (
3034
3034
firstCol : String ,
3035
3035
vararg otherCols : String ,
3036
3036
): ColumnSet <* > = cols(firstCol, * otherCols)
@@ -3471,7 +3471,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3471
3471
* @param [otherCols] Optional additional [KProperty]s that point to columns.
3472
3472
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that [firstCol] and [otherCols] point to.
3473
3473
*/
3474
- public fun <C > SingleColumn<AnyRow >.cols (
3474
+ public fun <C > SingleColumn <* >.cols (
3475
3475
firstCol : KProperty <C >,
3476
3476
vararg otherCols : KProperty <C >,
3477
3477
): ColumnSet <C > = headPlusArray(firstCol, otherCols).let { props ->
@@ -3508,7 +3508,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3508
3508
* @param [otherCols] Optional additional [KProperty]s that point to columns.
3509
3509
* @return A [ColumnSet][org.jetbrains.kotlinx.dataframe.columns.ColumnSet] containing the columns that [firstCol] and [otherCols] point to.
3510
3510
*/
3511
- public operator fun <C > SingleColumn<AnyRow >.get (
3511
+ public operator fun <C > SingleColumn <* >.get (
3512
3512
firstCol : KProperty <C >,
3513
3513
vararg otherCols : KProperty <C >,
3514
3514
): ColumnSet <C > = cols(firstCol, * otherCols)
@@ -3806,7 +3806,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3806
3806
vararg otherIndices : Int ,
3807
3807
): ColumnSet <C > = cols(firstIndex, * otherIndices)
3808
3808
3809
- public fun SingleColumn<AnyRow >.cols (
3809
+ public fun SingleColumn <* >.cols (
3810
3810
firstIndex : Int ,
3811
3811
vararg otherIndices : Int ,
3812
3812
): ColumnSet <* > = headPlusArray(firstIndex, otherIndices).let { indices ->
@@ -3816,7 +3816,7 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3816
3816
/* *
3817
3817
*
3818
3818
*/
3819
- public operator fun SingleColumn<AnyRow >.get (
3819
+ public operator fun SingleColumn <* >.get (
3820
3820
firstIndex : Int ,
3821
3821
vararg otherIndices : Int ,
3822
3822
): ColumnSet <* > = cols(firstIndex, * otherIndices)
@@ -3866,13 +3866,13 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3866
3866
3867
3867
public operator fun <C > ColumnSet<C>.get (range : IntRange ): ColumnSet <C > = cols(range)
3868
3868
3869
- public fun SingleColumn<AnyRow >.cols (range : IntRange ): ColumnSet <* > =
3869
+ public fun SingleColumn <* >.cols (range : IntRange ): ColumnSet <* > =
3870
3870
transform { it.flatMap { it.children().subList(range.first, range.last + 1 ) } }
3871
3871
3872
3872
/* *
3873
3873
*
3874
3874
*/
3875
- public operator fun SingleColumn<AnyRow >.get (range : IntRange ): ColumnSet <* > = cols(range)
3875
+ public operator fun SingleColumn <* >.get (range : IntRange ): ColumnSet <* > = cols(range)
3876
3876
3877
3877
public fun String.cols (range : IntRange ): ColumnSet <* > = colGroup(this ).cols(range)
3878
3878
@@ -3914,21 +3914,21 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3914
3914
3915
3915
@Deprecated(
3916
3916
message = " dfs is deprecated, use recursively instead." ,
3917
- replaceWith = ReplaceWith (" this.cols(predicate).recursively()" ),
3917
+ replaceWith = ReplaceWith (" this.cols(predicate).recursively(includeTopLevel = false )" ),
3918
3918
level = DeprecationLevel .WARNING ,
3919
3919
)
3920
3920
public fun <C > ColumnSet<C>.dfs (predicate : (ColumnWithPath <* >) -> Boolean ): ColumnSet <Any ?> = dfsInternal(predicate)
3921
3921
3922
3922
@Deprecated(
3923
3923
message = " dfs is deprecated, use recursively instead." ,
3924
- replaceWith = ReplaceWith (" this.cols(predicate).recursively()" ),
3924
+ replaceWith = ReplaceWith (" this.cols(predicate).recursively(includeTopLevel = false )" ),
3925
3925
level = DeprecationLevel .WARNING ,
3926
3926
)
3927
3927
public fun String.dfs (predicate : (ColumnWithPath <* >) -> Boolean ): ColumnSet <* > = toColumnAccessor().dfs(predicate)
3928
3928
3929
3929
@Deprecated(
3930
3930
message = " dfs is deprecated, use recursively instead." ,
3931
- replaceWith = ReplaceWith (" this.cols(predicate).recursively()" ),
3931
+ replaceWith = ReplaceWith (" this.cols(predicate).recursively(includeTopLevel = false )" ),
3932
3932
level = DeprecationLevel .WARNING ,
3933
3933
)
3934
3934
public fun <C > KProperty<C>.dfs (predicate : (ColumnWithPath <* >) -> Boolean ): ColumnSet <* > =
@@ -3949,32 +3949,51 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3949
3949
3950
3950
@Deprecated(
3951
3951
message = " allDfs is deprecated, use recursively instead." ,
3952
- replaceWith = ReplaceWith (" this.all().recursively(includeGroups)" ),
3952
+ replaceWith = ReplaceWith (" this.all().recursively(includeGroups = includeGroups, includeTopLevel = false )" ),
3953
3953
level = DeprecationLevel .WARNING ,
3954
3954
)
3955
3955
public fun ColumnSet <* >.allDfs (includeGroups : Boolean = false): ColumnSet <Any ?> =
3956
3956
if (includeGroups) dfs { true } else dfs { ! it.isColumnGroup() }
3957
3957
3958
3958
@Deprecated(
3959
3959
message = " allDfs is deprecated, use recursively instead." ,
3960
- replaceWith = ReplaceWith (" this.all().recursively(includeGroups)" ),
3960
+ replaceWith = ReplaceWith (" this.all().recursively(includeGroups = includeGroups, includeTopLevel = false )" ),
3961
3961
level = DeprecationLevel .WARNING ,
3962
3962
)
3963
3963
public fun String.allDfs (includeGroups : Boolean = false): ColumnSet <Any ?> = toColumnAccessor().allDfs(includeGroups)
3964
3964
3965
3965
@Deprecated(
3966
3966
message = " allDfs is deprecated, use recursively instead." ,
3967
- replaceWith = ReplaceWith (" this.all().recursively(includeGroups)" ),
3967
+ replaceWith = ReplaceWith (" this.all().recursively(includeGroups = includeGroups, includeTopLevel = false )" ),
3968
3968
level = DeprecationLevel .WARNING ,
3969
3969
)
3970
3970
public fun KProperty <* >.allDfs (includeGroups : Boolean = false): ColumnSet <Any ?> =
3971
3971
toColumnAccessor().allDfs(includeGroups)
3972
3972
3973
- public fun <C > ColumnSet<C>.recursively (includeGroups : Boolean = true): ColumnSet <C > = object : ColumnSet <C > {
3973
+ /* *
3974
+ * Modifies the previous call to run not only on the current column set, but also on all of its children.
3975
+ *
3976
+ * For example:
3977
+ *
3978
+ * `df.`[select][DataFrame.select]` { `[colsOf][ColumnSet.colsOf]`<`[String][String]`>() }`
3979
+ *
3980
+ * returns all columns of type [String] in the top-level, as expected. However, what if you want ALL
3981
+ * columns of type [String] even if they are inside a nested column group? Then you can use [recursively]:
3982
+ *
3983
+ * `df.`[select][DataFrame.select]` { `[colsOf][ColumnSet.colsOf]`<`[String][String]`>().`[recursively][ColumnSet.recursively]`() }`
3984
+ *
3985
+ * This will return all columns of type [String] in lower levels (unless [includeTopLevel]` == true`).
3986
+ *
3987
+ * TODO
3988
+ */
3989
+ public fun <C > ColumnSet<C>.recursively (
3990
+ includeGroups : Boolean = true,
3991
+ includeTopLevel : Boolean = true,
3992
+ ): ColumnSet <C > = object : ColumnSet <C > {
3974
3993
3975
3994
private fun flatten (columnSet : ColumnSet <* >): ColumnSet <* > = columnSet.transform { list ->
3976
3995
list
3977
- .filter { it.isColumnGroup() } // TODO should I include this from dfs?
3996
+ .filter { includeTopLevel || it.isColumnGroup() } // TODO should I include this from dfs?
3978
3997
.flatMap {
3979
3998
it.children()
3980
3999
.dfs()
@@ -3984,8 +4003,9 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3984
4003
3985
4004
override fun resolve (
3986
4005
context : ColumnResolutionContext ,
3987
- ): List <ColumnWithPath <C >> = this @recursively
3988
- .resolveAfterTransform(context = context, transform = ::flatten)
4006
+ ): List <ColumnWithPath <C >> =
4007
+ this @recursively
4008
+ .resolveAfterTransform(context = context, transform = ::flatten)
3989
4009
3990
4010
override fun resolveAfterTransform (
3991
4011
context : ColumnResolutionContext ,
@@ -3995,13 +4015,22 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
3995
4015
.resolveAfterTransform(context = context, transform = ::flatten)
3996
4016
}
3997
4017
3998
- public fun <C > ColumnSet<C>.rec (includeGroups : Boolean = true): ColumnSet <C > = recursively(includeGroups)
4018
+ public fun <C > ColumnSet<C>.rec (
4019
+ includeGroups : Boolean = true,
4020
+ includeTopLevel : Boolean = true,
4021
+ ): ColumnSet <C > = recursively(includeTopLevel = includeTopLevel, includeGroups = includeGroups)
3999
4022
4000
- public fun <C > ColumnSet<C>.allRecursively (includeGroups : Boolean = true): ColumnSet <C > =
4001
- wrap().recursively(includeGroups = includeGroups)
4023
+ public fun <C > ColumnSet<C>.allRecursively (
4024
+ includeGroups : Boolean = true,
4025
+ includeTopLevel : Boolean = true,
4026
+ ): ColumnSet <C > =
4027
+ wrap().recursively(includeTopLevel = includeTopLevel, includeGroups = includeGroups)
4002
4028
4003
- public fun <C > ColumnSet<C>.allRec (includeGroups : Boolean = true): ColumnSet <C > =
4004
- allRecursively(includeGroups = includeGroups)
4029
+ public fun <C > ColumnSet<C>.allRec (
4030
+ includeGroups : Boolean = true,
4031
+ includeTopLevel : Boolean = true,
4032
+ ): ColumnSet <C > =
4033
+ allRecursively(includeTopLevel = includeTopLevel, includeGroups = includeGroups)
4005
4034
4006
4035
4007
4036
// endregion
@@ -4161,10 +4190,10 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
4161
4190
public operator fun <C > List<DataColumn<C>>.get (range : IntRange ): ColumnSet <C > =
4162
4191
ColumnsList (subList(range.first, range.last + 1 ))
4163
4192
4164
- public fun SingleColumn<AnyRow >.take (n : Int ): ColumnSet <* > = transformSingle { it.children().take(n) }
4165
- public fun SingleColumn<AnyRow >.takeLast (n : Int ): ColumnSet <* > = transformSingle { it.children().takeLast(n) }
4166
- public fun SingleColumn<AnyRow >.drop (n : Int ): ColumnSet <* > = transformSingle { it.children().drop(n) }
4167
- public fun SingleColumn<AnyRow >.dropLast (n : Int = 1): ColumnSet <* > = transformSingle { it.children().dropLast(n) }
4193
+ public fun SingleColumn <* >.take (n : Int ): ColumnSet <* > = transformSingle { it.children().take(n) }
4194
+ public fun SingleColumn <* >.takeLast (n : Int ): ColumnSet <* > = transformSingle { it.children().takeLast(n) }
4195
+ public fun SingleColumn <* >.drop (n : Int ): ColumnSet <* > = transformSingle { it.children().drop(n) }
4196
+ public fun SingleColumn <* >.dropLast (n : Int = 1): ColumnSet <* > = transformSingle { it.children().dropLast(n) }
4168
4197
4169
4198
public fun <C > ColumnSet<C>.drop (n : Int ): ColumnSet <C > = transform { it.drop(n) }
4170
4199
public fun <C > ColumnSet<C>.take (n : Int ): ColumnSet <C > = transform { it.take(n) }
@@ -4180,13 +4209,13 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
4180
4209
public fun <C > ColumnSet<C>.filter (predicate : Predicate <ColumnWithPath <C >>): ColumnSet <C > =
4181
4210
transform { it.filter(predicate) }
4182
4211
4183
- public fun SingleColumn<AnyRow >.nameContains (text : CharSequence ): ColumnSet <* > = cols { it.name.contains(text) }
4212
+ public fun SingleColumn <* >.nameContains (text : CharSequence ): ColumnSet <* > = cols { it.name.contains(text) }
4184
4213
public fun <C > ColumnSet<C>.nameContains (text : CharSequence ): ColumnSet <C > = cols { it.name.contains(text) }
4185
- public fun SingleColumn<AnyRow >.nameContains (regex : Regex ): ColumnSet <* > = cols { it.name.contains(regex) }
4214
+ public fun SingleColumn <* >.nameContains (regex : Regex ): ColumnSet <* > = cols { it.name.contains(regex) }
4186
4215
public fun <C > ColumnSet<C>.nameContains (regex : Regex ): ColumnSet <C > = cols { it.name.contains(regex) }
4187
- public fun SingleColumn<AnyRow >.startsWith (prefix : CharSequence ): ColumnSet <* > = cols { it.name.startsWith(prefix) }
4216
+ public fun SingleColumn <* >.startsWith (prefix : CharSequence ): ColumnSet <* > = cols { it.name.startsWith(prefix) }
4188
4217
public fun <C > ColumnSet<C>.startsWith (prefix : CharSequence ): ColumnSet <C > = cols { it.name.startsWith(prefix) }
4189
- public fun SingleColumn<AnyRow >.endsWith (suffix : CharSequence ): ColumnSet <* > = cols { it.name.endsWith(suffix) }
4218
+ public fun SingleColumn <* >.endsWith (suffix : CharSequence ): ColumnSet <* > = cols { it.name.endsWith(suffix) }
4190
4219
public fun <C > ColumnSet<C>.endsWith (suffix : CharSequence ): ColumnSet <C > = cols { it.name.endsWith(suffix) }
4191
4220
4192
4221
public fun <C > ColumnSet<C>.except (vararg other : ColumnSet <* >): ColumnSet <* > = except(other.toColumnSet())
@@ -4277,9 +4306,25 @@ public interface ColumnsSelectionDsl<out T> : ColumnSelectionDsl<T>, SingleColum
4277
4306
4278
4307
public fun <C > ColumnSet<C>.distinct (): ColumnSet <C > = DistinctColumnSet (this )
4279
4308
4309
+ @Deprecated(
4310
+ message = " Use recursively() instead" ,
4311
+ replaceWith = ReplaceWith (
4312
+ " this.colsOf(type, predicate).recursively(includeTopLevel = false)" ,
4313
+ " org.jetbrains.kotlinx.dataframe.columns.recursively" ,
4314
+ " org.jetbrains.kotlinx.dataframe.api.colsOf" ,
4315
+ ),
4316
+ )
4280
4317
public fun <C > String.dfsOf (type : KType , predicate : (ColumnWithPath <C >) -> Boolean = { true }): ColumnSet <* > =
4281
4318
toColumnAccessor().dfsOf(type, predicate)
4282
4319
4320
+ @Deprecated(
4321
+ message = " Use recursively() instead" ,
4322
+ replaceWith = ReplaceWith (
4323
+ " this.colsOf(type, predicate).recursively(includeTopLevel = false)" ,
4324
+ " org.jetbrains.kotlinx.dataframe.columns.recursively" ,
4325
+ " org.jetbrains.kotlinx.dataframe.api.colsOf" ,
4326
+ ),
4327
+ )
4283
4328
public fun <C > KProperty <* >.dfsOf (type : KType , predicate : (ColumnWithPath <C >) -> Boolean = { true }): ColumnSet <* > =
4284
4329
toColumnAccessor().dfsOf(type, predicate)
4285
4330
@@ -4398,8 +4443,7 @@ internal fun ColumnSet<*>.dfsInternal(predicate: (ColumnWithPath<*>) -> Boolean)
4398
4443
@Deprecated(
4399
4444
message = " Use recursively() instead" ,
4400
4445
replaceWith = ReplaceWith (
4401
- " this.colsOf(type, predicate).recursively()" ,
4402
- " org.jetbrains.kotlinx.dataframe.columns.recursively" ,
4446
+ " this.colsOf(type, predicate).recursively(includeTopLevel = false)" ,
4403
4447
" org.jetbrains.kotlinx.dataframe.columns.recursively" ,
4404
4448
" org.jetbrains.kotlinx.dataframe.api.colsOf" ,
4405
4449
),
@@ -4410,7 +4454,7 @@ public fun <C> ColumnSet<*>.dfsOf(type: KType, predicate: (ColumnWithPath<C>) ->
4410
4454
@Deprecated(
4411
4455
message = " Use recursively() instead" ,
4412
4456
replaceWith = ReplaceWith (
4413
- " this.colsOf<C>(filter).recursively()" ,
4457
+ " this.colsOf<C>(filter).recursively(includeTopLevel = false )" ,
4414
4458
" org.jetbrains.kotlinx.dataframe.columns.recursively" ,
4415
4459
" org.jetbrains.kotlinx.dataframe.api.colsOf" ,
4416
4460
),
0 commit comments