Method PrintSchemaString
- Namespace
- SparkTest.NET.Extensions
- Assembly
- SparkTest.NET.dll
PrintSchemaString(DataFrame)
Prints the schema to the console in a nice tree format
[Since("2.4.0")]
public static string PrintSchemaString(this DataFrame dataFrame)
Parameters
dataFrame
DataFrameDataFrame
Returns
- string
schema
Examples
Example PrintSchemaString usage for a DataFrame,
var df = s.CreateDataFrameFromData(
new { Name = "John" },
new { Name = "Steve" },
new { Name = "Jess" }
);
var debugResult = df.PrintSchemaString();
Results in,
root
|-- Name: string (nullable = true)