I have a dataframe and I'm using PySpark, when I'm showing the data, it not showing very well, like the next image:
How can I fix it? Thank You.
I have a dataframe and I'm using PySpark, when I'm showing the data, it not showing very well, like the next image:
How can I fix it? Thank You.
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