text_html_output_1.png
from pyspark.sql import SparkSession

spark = SparkSession.builder.getOrCreate()
spark

sdf_train = spark.read.csv('../input/train.csv', inferSchema=True, header=True)
print(sdf_train.printSchema())
pdf = sdf_train.limit(5).toPandas()
pdf.T