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 ab8177d commit 7bab333Copy full SHA for 7bab333
docs/sql-programming-guide.md
@@ -278,7 +278,7 @@ performed on JSON files.
278
from pyspark.sql import SQLContext, Row
279
sqlContext = SQLContext(sc)
280
281
-# Load a text file and convert each line to a dictionary.
+# Load a text file and convert each line to a Row.
282
lines = sc.textFile("examples/src/main/resources/people.txt")
283
parts = lines.map(lambda l: l.split(","))
284
people = parts.map(lambda p: Row(name=p[0], age=int(p[1])))
0 commit comments