14.12.3 Printing the Content of a PgxFrame
You can observe the contents of a frame using the print
functionality as shown:
Printing a PgxFrame Using
JShell
opg4j> exampleFrame.print();
Printing a PgxFrame Using Java
exampleFrame.print();
Printing a PgxFrame Using Python
example_frame.print()
The output appears as follows:
+-------------------------------------------------------------------------------+
| name | age | salary | married | tax_rate | random | date_of_birth |
+-------------------------------------------------------------------------------+
| John | 27 | 4133300.0 | true | 11.0 | 123456782 | 1985-10-18 |
| Albert | 23 | 5813000.5 | false | 12.0 | 124343142 | 2000-01-14 |
| Heather | 28 | 1.0130302E7 | true | 10.5 | 827520917 | 1985-10-18 |
| Emily | 24 | 9380080.5 | false | 13.0 | 128973221 | 1910-07-30 |
| "D'Juan" | 27 | 1582093.0 | true | 11.0 | 92384 | 1955-12-01 |
+-------------------------------------------------------------------------------+
Parent topic: PgxFrames Tabular Data-Structure