Putty terminal not showing a clean view of DataFrame (Spark Scala) - Stack Overflow

I am trying to get a better visualization of the df that I'm working with but the putty terminalc

I am trying to get a better visualization of the df that I'm working with but the putty terminal/console is seemingly making this impossible.

I tried messing around with the putty settings but everything seemed to be correct. I tried df.show(truncate = false), still same result. I can't save it to a file and can only view it through a putty terminal.

I am trying to get a better visualization of the df that I'm working with but the putty terminal/console is seemingly making this impossible.

I tried messing around with the putty settings but everything seemed to be correct. I tried df.show(truncate = false), still same result. I can't save it to a file and can only view it through a putty terminal.

Share Improve this question edited Feb 21 at 6:53 Gaël J 15.6k5 gold badges22 silver badges45 bronze badges asked Feb 21 at 3:04 Niv AigesNiv Aiges 192 bronze badges 2
  • You could try to print the DF differently but in the end it's an issue with your terminal if you can't have more than 80 characters per line. – Gaël J Commented Feb 21 at 6:56
  • Please do not upload images of code/data/errors. – David Makogon Commented Feb 22 at 4:11
Add a comment  | 

1 Answer 1

Reset to default 1

Try to use vertical=true (Link)

df.show(numRows=10, truncate=30, vertical=true)

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745169307a4614825.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信