Skip to content

Commit

Permalink
modify unit-test using pandas.
Browse files Browse the repository at this point in the history
  • Loading branch information
x1- committed Jul 1, 2015
1 parent ea1897d commit d68fd38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/sql/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def createDataFrame(self, data, schema=None, samplingRatio=None):
>>> sqlContext.createDataFrame(df.toPandas()).collect() # doctest: +SKIP
[Row(name=u'Alice', age=1)]
>>> sqlContext.createDataFrame(pandas.DataFrame([[1, 2]]).collect())
>>> sqlContext.createDataFrame(pandas.DataFrame([[1, 2]]).collect()) # doctest: +SKIP
[Row(0=1, 1=2)]
"""
if isinstance(data, DataFrame):
Expand Down

0 comments on commit d68fd38

Please sign in to comment.