Skip to content
Snippets Groups Projects
Commit c5cc4146 authored by Bill Chambers's avatar Bill Chambers Committed by Reynold Xin
Browse files

[DOCUMENTATION]Fixed Missing Type Import in Documentation

Needed to import the types specifically, not the more general pyspark.sql

Author: Bill Chambers <wchambers@ischool.berkeley.edu>
Author: anabranch <wac.chambers@gmail.com>

Closes #5179 from anabranch/master and squashes the following commits:

8fa67bf [anabranch] Corrected SqlContext Import
603b080 [Bill Chambers] [DOCUMENTATION]Fixed Missing Type Import in Documentation
parent c14ddd97
No related branches found
No related tags found
No related merge requests found
......@@ -624,7 +624,8 @@ tuples or lists in the RDD created in the step 1.
For example:
{% highlight python %}
# Import SQLContext and data types
from pyspark.sql import *
from pyspark.sql import SQLContext
from pyspark.sql.types import *
# sc is an existing SparkContext.
sqlContext = SQLContext(sc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment