Answers for "Read JSON files with automatic schema inference"

0

Read JSON files with automatic schema inference

# Read JSON files with automatic schema inference

df = spark.read.json("logs.json")
df.where("age > 21").select("name.first").show()
Posted by: Guest on April-12-2020

Python Answers by Framework

Browse Popular Code Answers by Language