1

I am trying to print my DataFrame on the log:

datasource0 = glueContext.create_dynamic_frame.from_catalog(database = "dev", table_name = "sellout_data_cw01_15_csv", transformation_ctx = "datasource0")
....
dataframe = datasource0.toDF()
dataframe.show(10)

but the output is all messed up. How can I format it properly like a table with pandas in normal python?

x89
  • 2,798
  • 5
  • 46
  • 110

1 Answers1

1

This is a Glue problem. You need to go into the CloudWatch logs of your job run to see it a bit more formatted.

enter image description here

Robert Kossendey
  • 6,733
  • 2
  • 12
  • 42