我正在使用下面的代码读取spark dataframe中的csv文件,但输出很乱:
df = spark.read.format('csv').options(header=True, inferSchema=True).csv('spark.csv')
输出:+
v2g6jxz616#
---+
g6ll5ycj17#
92dk7w1h18#
------+--------+
w51jfk4q19#
------+
9njqaruj20#
xnifntxz21#
gr8qqesn22#
----+
0ve6wy6x23#
+------+--------+--------+--------+
tzxcd3kk24#
nbewdwxp25#
webghufk26#
+--------+
xxslljrj27#
d5vmydt928#
yvgpqqbh29#
tnkciper30#
55条答案
按热度按时间v2g6jxz616#
---+
g6ll5ycj17#
---+
92dk7w1h18#
------+--------+
w51jfk4q19#
------+
9njqaruj20#
---+
xnifntxz21#
gr8qqesn22#
----+
0ve6wy6x23#
+------+--------+--------+--------+
tzxcd3kk24#
------+
nbewdwxp25#
+------+--------+--------+--------+
webghufk26#
+--------+
xxslljrj27#
d5vmydt928#
+--------+
yvgpqqbh29#
---+
tnkciper30#
------+