toDataFrame
Converts a list of lists into a DataFrame.
By default, treats lists as row values. If header is not provided, the first inner list becomes a header (column names), and the remaining lists are treated as data.
With containsColumns = true, interprets each inner list as a column. If header is not provided, the first element will be used as the column name, and the remaining elements as values.
For more information: See DataFrame from List> on the documentation website.
Return
A DataFrame containing the data from the nested list structure. Returns an empty DataFrame if the input is empty or invalid.
Parameters
If true, treats each nested list as a column. Otherwise, each nested list is a row. Defaults to false.
overrides extraction of column names from lists - all values are treated as data instead.
Type Parameters
The type of elements contained in the nested lists.