[SPARK-7516] [Minor] [DOC] Replace depreciated inferSchema() with createDataFrame()
[SPARK-7516] [Minor] [DOC] Replace depreciated inferSchema() with createDataFrame()

JIRA: https://issues.apache.org/jira/browse/SPARK-7516

In sql-programming-guide, deprecated python data frame api inferSchema() should be replaced by createDataFrame():

schemaPeople = sqlContext.inferSchema(people) ->
schemaPeople = sqlContext.createDataFrame(people)

Author: gchen <chenguancheng@gmail.com>

Closes #6041 from gchen/python-docs and squashes the following commits:

c27eb7c [gchen] replace inferSchema() with createDataFrame()

(cherry picked from commit 8e674331d9ce98068b44e4d483b6d35cef0648fa)
Signed-off-by: Reynold Xin <c9d35a384bc579d1c6c8c055f2a2b5c04e11b521@databricks.com>

andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap,andrewor14/iolap