Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created November 3, 2019 13:02
# read a csv file
my_data = spark.read.csv('ind-ban-comment.csv',header=True)
# see the default schema of the dataframe
my_data.printSchema()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment