Spark has an option to show your dataframe on Jupyter Notebook like Pandas.
spark.conf.set("spark.sql.repl.eagerEval.enabled",True)
Your Dataframe will be shown as a HTML Table.
df = spark.read.option("header",True).csv("sample.csv")
df.limit(10)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.