transposeTo
Converts this DataRow into a DataFrame with one row per column of the original row.
This is the same as transpose, but instead of keeping the values as they are, each value is converted to T — unless it is already a T, which is taken as it is. null stays null.
The result is a DataFrame of NameValuePair with two columns:
For more information: See Row Functions on the documentation website.
See also namedValuesOf, which gives a List and skips the values of other types instead of converting them.
Example
// Show every cell of a row as text, whatever its original type is
df.first().transposeTo<String>()Return
A DataFrame of NameValuePair with name and value columns, containing one row for each column of this DataRow.
Type Parameters
the type every value is converted to.
Throws
if there is no converter from the type of some value to T.
Implementation of the public transposeTo that takes the target type explicitly instead of as a reified type parameter.