Package tech.tablesaw.io.string
Class DataFramePrinter
- java.lang.Object
-
- tech.tablesaw.io.string.DataFramePrinter
-
public class DataFramePrinter extends Object
A class that can pretty print a DataFrame to text for visualization in a consoleBased off of https://github.com/zavtech/morpheus-core/blob/master/src/main/java/com/zavtech/morpheus/reference/XDataFramePrinter.java under Apache 2 license
-
-
Constructor Summary
Constructors Constructor Description DataFramePrinter(int maxRows, OutputStream stream)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
print(Relation frame)
Prints the specified DataFrame to the stream bound to this printer
-
-
-
Constructor Detail
-
DataFramePrinter
public DataFramePrinter(int maxRows, OutputStream stream)
Constructor- Parameters:
maxRows
- the max rows to printstream
- the print stream to write to
-
-
Method Detail
-
print
public void print(Relation frame)
Prints the specified DataFrame to the stream bound to this printer- Parameters:
frame
- the DataFrame to print
-
-