Answers for "read xlsx spark"

0

read xlsx spark

from pyspark.sql import SparkSession
import pandas

spark = SparkSession.builder.appName("Test").getOrCreate()

pdf = pandas.read_excel('excelfile.xlsx', sheet_name='sheetname', inferSchema='true')
df = spark.createDataFrame(pdf)

df.show()
Posted by: Guest on October-07-2021

Browse Popular Code Answers by Language