Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

pyspark dataframe json string

newJson = '{"Name":"something","Url":"https://stackoverflow.com","Author":"jangcy","BlogEntries":100,"Caller":"jangcy"}'
df = spark.read.json(sc.parallelize([newJson]))
df.show(truncate=False)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyspark #dataframe #json #string
ADD COMMENT
Topic
Name
8+1 =