将execl表格导出为csv格式,然后数据就是一行一行以逗号分割的数据。后面就好办了吧#找python的excel库。http://www.lexicon.net/sjmachin/xlrd.html 多看看文档有益身心健康 file_contents.as a string or an mmap...
现在我们可以使用pyspark.sql.functions.regexp_replace从每行中删除额外的方括号和尾随逗号: from pyspark.sql.functions import regexp_replacea=a.select(regexp_replace("value","(^[?[))|(?a.show(truncate=...