You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/api/TypeConversions.kt
+12-6Lines changed: 12 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -234,16 +234,22 @@ public enum class Infer {
234
234
235
235
/**
236
236
* Use reified type argument of an inline [DataFrame] operation as [DataColumn.type].
237
+
*
238
+
* This is the most efficient but least safe option.
237
239
*/
238
240
None,
239
241
240
242
/**
241
-
* Use reified type argument of an inline [DataFrame] operation as [DataColumn.type], but compute [DataColumn.hasNulls] by checking column [DataColumn.values] for an actual presence of *null* values.
243
+
* Use reified type argument of an inline [DataFrame] operation as [DataColumn.type],
244
+
* but compute [DataColumn.hasNulls] by checking column [DataColumn.values] for an actual presence of `null` values.
242
245
*/
243
246
Nulls,
244
247
245
248
/**
246
-
* Infer [DataColumn.type] and [DataColumn.hasNulls] from actual [DataColumn.values] using optionally provided base type as an upper bound.
249
+
* Infer [DataColumn.type] and [DataColumn.hasNulls] from actual [DataColumn.values] using an optionally provided
250
+
* base type as an upper bound.
251
+
*
252
+
* This is the least efficient but safest option.
247
253
*/
248
254
Type,
249
255
@@ -306,17 +312,17 @@ public inline fun <reified T> Iterable<T>.toColumn(name: String = "", infer: Inf
0 commit comments