We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86f6886 commit dc35731Copy full SHA for dc35731
python/pyspark/sql/functions.py
@@ -2249,7 +2249,7 @@ def schema_of_json(col):
2249
:param col: string column in json format
2250
2251
>>> from pyspark.sql.types import *
2252
- >>> data = [(1, '''{"a": 1}''')]
+ >>> data = [(1, '{"a": 1}')]
2253
>>> df = spark.createDataFrame(data, ("key", "value"))
2254
>>> df.select(schema_of_json(df.value).alias("json")).collect()
2255
[Row(json=u'struct<a:bigint>')]
0 commit comments