-1

I have a dataframe and I'm using PySpark, when I'm showing the data, it not showing very well, like the next image:

enter image description here

How can I fix it? Thank You.

1 Answers1

0

There's not a whole lot you can do. The issue is with line wrap. A common workaround is to use pandas

df.limit(5).toPandas().head()

If you're using a Jupyter Notebook, you can read more choices here: pyspark show dataframe as table with horizontal scroll in ipython notebook