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
@@ -48,34 +50,37 @@ public fun catchHttpResponse(url: URL, body: (InputStream) -> AnyFrame): AnyFram
48
50
/**
49
51
* Converts a list of lists into a [DataFrame].
50
52
*
51
-
* By default, treats the first inner list as a header (column names), and the remaining lists as rows.
52
-
* If [containsColumns] is `true`, interprets each inner list as a column,
53
-
* where the first element is used as the column name, and the remaining elements as values.
53
+
* By default, treats lists as rows. If [header] is not provided, the first inner list becomes a header (column names), and the remaining lists are treated as data.
54
+
*
55
+
* With [containsColumns] = `true`, interprets each inner list as a column.
56
+
* If [header] is not provided, the first element will be used as the column name, and the remaining elements as values.
54
57
*
55
58
* @param T The type of elements contained in the nested lists.
56
-
* @param containsColumns If `true`, treats each nested list as a column with its first element as the column name.
57
-
* Otherwise, the first list is treated as the header.
59
+
* @param containsColumns If `true`, treats each nested list as a column.
60
+
* Otherwise, each nested list is a row.
58
61
* Defaults to `false`.
62
+
* @param header overrides extraction of column names from lists - all values are treated as data instead.
59
63
* @return A [DataFrame] containing the data from the nested list structure.
60
64
* Returns an empty [DataFrame] if the input is empty or invalid.
0 commit comments