1

It will become very difficult to read the output if it is not in the good formated manner like shown in the image in this link -> required output. I am running my code on jupyter notebook in pyspark with apache-toree kernel. Currently when i show my dataframe it looks somewhat like as shown in the image in this link -> Current Table.

I know there is a way using "magic" as mentioned on apache toree website but it is also not working in pyspark. It works if i load a normal python notebook in jupyter. It gives the error shown in the image with pyspark

I am not able to find anything on internet about this. Any help is very much appreciated.

  • Possible duplicate of [pyspark show dataframe as table with horizontal scroll in ipython notebook](https://stackoverflow.com/questions/43427138/pyspark-show-dataframe-as-table-with-horizontal-scroll-in-ipython-notebook) – Vijay Jangir Nov 19 '19 at 18:33

1 Answers1

0

I work around this problem by converting pyspark DataFrame to pandas DataFrame with toPandas method.

AFault
  • 9
  • 2