[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()

adrian-ionescu/apache-spark,wangmiao1981/spark,liyichao/spark,nlalevee/spark,andrewor14/spark,stanzhai/spark,ptkool/spark,narahari92/spark,zuotingbing/spark,bOOm-X/spark,aokolnychyi/spark,Aegeaner/spark,mzl9039/spark,nchammas/spark,patrick-nicholson/spark,Aegeaner/spark,ueshin/apache-spark,panfengfeng/spark,akopich/spark,zzcclp/spark,witgo/spark,tengpeng/spark,zuotingbing/spark,LantaoJin/spark,byakuinss/spark,brad-kaiser/spark,dhruve/spark,JoshRosen/spark,aray/spark,mzl9039/spark,apache/spark,rezasafi/spark,cin/spark,wzhfy/spark,liyichao/spark,goldmedal/spark,poffuomo/spark,hvanhovell/spark,jianran/spark,akopich/spark,spark-test/spark,caneGuy/spark,hvanhovell/spark,jrshust/spark,liutang123/spark,zhouyejoe/spark,ahnqirage/spark,Panos-Bletsos/spark-cost-model-optimizer,shuangshuangwang/spark,tejasapatil/spark,darionyaphet/spark,wangyum/spark,milliman/spark,eyalfa/spark,aray/spark,panfengfeng/spark,ron8hu/spark,aokolnychyi/spark,ericvandenbergfb/spark,1haodian/spark,spark-test/spark,BryanCutler/spark,rekhajoshm/spark,skonto/spark,aokolnychyi/spark,WindCanDie/spark,wangyum/spark,rednaxelafx/apache-spark,nlalevee/spark,mahak/spark,WeichenXu123/spark,ptkool/spark,goldmedal/spark,caneGuy/spark,SHASHANKB/spark,minixalpha/spark,shaneknapp/spark,maropu/spark,map222/spark,wangyum/spark,publicRoman/spark,ibm-research-ireland/sparkoscope,guoxiaolongzte/spark,apache/spark,map222/spark,ConeyLiu/spark,shaneknapp/spark,mdespriee/spark,cloud-fan/spark,kiszk/spark,minixalpha/spark,UndeadBaneGitHub/spark,jlopezmalla/spark,kiszk/spark,yanboliang/spark,brad-kaiser/spark,publicRoman/spark,wzhfy/spark,yanboliang/spark,lxsmnv/spark,kevinyu98/spark,shubhamchopra/spark,big-pegasus/spark,xuanyuanking/spark,someorz/spark,apache-spark-on-k8s/spark,nchammas/spark,WeichenXu123/spark,gengliangwang/spark,saltstar/spark,LantaoJin/spark,HyukjinKwon/spark,bOOm-X/spark,nlalevee/spark,xuanyuanking/spark,andrewor14/spark,mdespriee/spark,esi-mineset/spark,poffuomo/spark,wzhfy/spark,ajaysaini725/spark,dhruve/spark,witgo/spark,xflin/spark,bOOm-X/spark,adrian-ionescu/apache-spark,xflin/spark,jkbradley/spark,apache/spark,setjet/spark,vinodkc/spark,stanzhai/spark,kevinyu98/spark,eyalfa/spark,aosagie/spark,shubhamchopra/spark,BryanCutler/spark,mike0sv/spark,michalsenkyr/spark,JoshRosen/spark,liutang123/spark,rednaxelafx/apache-spark,setjet/spark,brad-kaiser/spark,MLnick/spark,mdespriee/spark,WeichenXu123/spark,ahnqirage/spark,joseph-torres/spark,mahak/spark,chuckchen/spark,zhouyejoe/spark,szhem/spark,WindCanDie/spark,gioenn/xSpark,patrick-nicholson/spark,liutang123/spark,caneGuy/spark,jkbradley/spark,taroplus/spark,JerryLead/spark,dbtsai/spark,huang1900/spark,pronix/spark,bdrillard/spark,xuanyuanking/spark,holdenk/spark,BryanCutler/spark,dhruve/spark,haowu80s/spark,goldmedal/spark,cloud-fan/spark,shubhamchopra/spark,kimoonkim/spark,jiangxb1987/spark,eyalfa/spark,rezasafi/spark,vinodkc/spark,lxsmnv/spark,aray/spark,tengpeng/spark,ioana-delaney/spark,xuanyuanking/spark,aray/spark,taroplus/spark,ueshin/apache-spark,metamx/spark,andrewor14/spark,rikima/spark,kimoonkim/spark,ioana-delaney/spark,haowu80s/spark,cin/spark,wangmiao1981/spark,ConeyLiu/spark,nchammas/spark,narahari92/spark,LantaoJin/spark,janewangfb/spark,narahari92/spark,witgo/spark,dongjoon-hyun/spark,dbtsai/spark,andrewor14/spark,liutang123/spark,bOOm-X/spark,shaneknapp/spark,mdespriee/spark,sachintyagi22/spark,shubhamchopra/spark,JoshRosen/spark,xflin/spark,liyichao/spark,shubhamchopra/spark,narahari92/spark,adrian-ionescu/apache-spark,shuangshuangwang/spark,andrewor14/spark,wangmiao1981/spark,darionyaphet/spark,ron8hu/spark,MLnick/spark,kimoonkim/spark,saturday-shi/spark,gioenn/xSpark,hhbyyh/spark,saltstar/spark,someorz/spark,kissmetrics/spark,WindCanDie/spark,michalsenkyr/spark,WeichenXu123/spark,stanzhai/spark,saltstar/spark,kimoonkim/spark,nchammas/spark,dbtsai/spark,LantaoJin/spark,jiangxb1987/spark,tejasapatil/spark,maropu/spark,maropu/spark,skonto/spark,tejasapatil/spark,ericvandenbergfb/spark,minixalpha/spark,BryanCutler/spark,dongjoon-hyun/spark,loneknightpy/spark,goldmedal/spark,kevinyu98/spark,zhouyejoe/spark,big-pegasus/spark,rikima/spark,aray/spark,janewangfb/spark,ajaysaini725/spark,zuotingbing/spark,jkbradley/spark,pgandhi999/spark,holdenk/spark,zuotingbing/spark,patrick-nicholson/spark,janewangfb/spark,poffuomo/spark,map222/spark,UndeadBaneGitHub/spark,vinodkc/spark,rekhajoshm/spark,JerryLead/spark,chuckchen/spark,stanzhai/spark,akopich/spark,saturday-shi/spark,alunarbeach/spark,kimoonkim/spark,srowen/spark,kiszk/spark,metamx/spark,UndeadBaneGitHub/spark,byakuinss/spark,nchammas/spark,icexelloss/spark,LantaoJin/spark,techaddict/spark,skonto/spark,1haodian/spark,lxsmnv/spark,xflin/spark,sachintyagi22/spark,dbtsai/spark,ptkool/spark,SHASHANKB/spark,zero323/spark,gioenn/xSpark,mike0sv/spark,ioana-delaney/spark,ddna1021/spark,adrian-ionescu/apache-spark,apache/spark,jianran/spark,cloud-fan/spark,kissmetrics/spark,jianran/spark,bdrillard/spark,loneknightpy/spark,saltstar/spark,maropu/spark,markhamstra/spark,rikima/spark,debugger87/spark,maropu/spark,icexelloss/spark,lxsmnv/spark,wangyum/spark,mike0sv/spark,panfengfeng/spark,skonto/spark,maropu/spark,jiangxb1987/spark,Panos-Bletsos/spark-cost-model-optimizer,mzl9039/spark,zzcclp/spark,zero323/spark,taroplus/spark,LantaoJin/spark,minixalpha/spark,highfei2011/spark,byakuinss/spark,tengpeng/spark,lvdongr/spark,jlopezmalla/spark,narahari92/spark,big-pegasus/spark,sureshthalamati/spark,wangmiao1981/spark,alunarbeach/spark,rekhajoshm/spark,UndeadBaneGitHub/spark,jiangxb1987/spark,SnappyDataInc/spark,xuanyuanking/spark,JerryLead/spark,zhouyejoe/spark,map222/spark,gioenn/xSpark,liyichao/spark,dbtsai/spark,wangyum/spark,joseph-torres/spark,ioana-delaney/spark,holdenk/spark,jkbradley/spark,ajaysaini725/spark,ConeyLiu/spark,pgandhi999/spark,sahilTakiar/spark,saturday-shi/spark,1haodian/spark,aokolnychyi/spark,sureshthalamati/spark,ptkool/spark,rednaxelafx/apache-spark,ddna1021/spark,cloud-fan/spark,holdenk/spark,saltstar/spark,jrshust/spark,jianran/spark,minixalpha/spark,aosagie/spark,hhbyyh/spark,SHASHANKB/spark,cloud-fan/spark,shaneknapp/spark,setjet/spark,MLnick/spark,lvdongr/spark,pgandhi999/spark,cin/spark,WeichenXu123/spark,srowen/spark,rednaxelafx/apache-spark,ajaysaini725/spark,yanboliang/spark,sahilTakiar/spark,kimoonkim/spark,lxsmnv/spark,1haodian/spark,liyichao/spark,shuangshuangwang/spark,vinodkc/spark,facaiy/spark,patrick-nicholson/spark,zero323/spark,darionyaphet/spark,apache-spark-on-k8s/spark,ptkool/spark,adrian-ionescu/apache-spark,byakuinss/spark,saltstar/spark,jlopezmalla/spark,debugger87/spark,spark-test/spark,rikima/spark,setjet/spark,janewangfb/spark,spark-test/spark,ron8hu/spark,1haodian/spark,xflin/spark,kiszk/spark,ddna1021/spark,akopich/spark,mdespriee/spark,facaiy/spark,bdrillard/spark,zzcclp/spark,guoxiaolongzte/spark,hvanhovell/spark,ericvandenbergfb/spark,ioana-delaney/spark,nlalevee/spark,debugger87/spark,szhem/spark,publicRoman/spark,highfei2011/spark,UndeadBaneGitHub/spark,SnappyDataInc/spark,loneknightpy/spark,aray/spark,SHASHANKB/spark,jianran/spark,poffuomo/spark,mike0sv/spark,saturday-shi/spark,zhouyejoe/spark,esi-mineset/spark,patrick-nicholson/spark,adrian-ionescu/apache-spark,nchammas/spark,tengpeng/spark,Panos-Bletsos/spark-cost-model-optimizer,nchammas/spark,patrick-nicholson/spark,holdenk/spark,facaiy/spark,xflin/spark,JerryLead/spark,someorz/spark,facaiy/spark,actuaryzhang/spark,techaddict/spark,HyukjinKwon/spark,rekhajoshm/spark,ibm-research-ireland/sparkoscope,guoxiaolongzte/spark,chuckchen/spark,dhruve/spark,markhamstra/spark,apache-spark-on-k8s/spark,srowen/spark,lvdongr/spark,gengliangwang/spark,nilsgrabbert/spark,dongjoon-hyun/spark,dongjoon-hyun/spark,Aegeaner/spark,hhbyyh/spark,jrshust/spark,gengliangwang/spark,panfengfeng/spark,Panos-Bletsos/spark-cost-model-optimizer,loneknightpy/spark,milliman/spark,setjet/spark,minixalpha/spark,mdespriee/spark,dongjoon-hyun/spark,metamx/spark,saturday-shi/spark,mahak/spark,ddna1021/spark,cin/spark,shuangshuangwang/spark,sachintyagi22/spark,dhruve/spark,setjet/spark,taroplus/spark,BryanCutler/spark,kiszk/spark,jiangxb1987/spark,szhem/spark,ericvandenbergfb/spark,bOOm-X/spark,zuotingbing/spark,bravo-zhang/spark,ibm-research-ireland/sparkoscope,hhbyyh/spark,Panos-Bletsos/spark-cost-model-optimizer,sahilTakiar/spark,panfengfeng/spark,stanzhai/spark,jlopezmalla/spark,szhem/spark,bdrillard/spark,szhem/spark,rekhajoshm/spark,lvdongr/spark,mzl9039/spark,poffuomo/spark,tejasapatil/spark,loneknightpy/spark,ptkool/spark,ahnqirage/spark,hhbyyh/spark,holdenk/spark,liutang123/spark,esi-mineset/spark,jianran/spark,andrewor14/spark,witgo/spark,brad-kaiser/spark,cloud-fan/spark,sureshthalamati/spark,jlopezmalla/spark,wzhfy/spark,alunarbeach/spark,sureshthalamati/spark,tengpeng/spark,debugger87/spark,liyichao/spark,kissmetrics/spark,mike0sv/spark,apache-spark-on-k8s/spark,highfei2011/spark,rekhajoshm/spark,kissmetrics/spark,byakuinss/spark,bdrillard/spark,alunarbeach/spark,HyukjinKwon/spark,cin/spark,wzhfy/spark,srowen/spark,guoxiaolongzte/spark,ron8hu/spark,hvanhovell/spark,ibm-research-ireland/sparkoscope,jianran/spark,bdrillard/spark,minixalpha/spark,1haodian/spark,lvdongr/spark,goldmedal/spark,mahak/spark,apache/spark,debugger87/spark,nilsgrabbert/spark,LantaoJin/spark,akopich/spark,caneGuy/spark,mzl9039/spark,gioenn/xSpark,rednaxelafx/apache-spark,janewangfb/spark,goldmedal/spark,ericvandenbergfb/spark,gengliangwang/spark,mzl9039/spark,techaddict/spark,taroplus/spark,yanboliang/spark,pronix/spark,mike0sv/spark,panfengfeng/spark,sahilTakiar/spark,actuaryzhang/spark,ibm-research-ireland/sparkoscope,zero323/spark,jkbradley/spark,HyukjinKwon/spark,someorz/spark,WeichenXu123/spark,ueshin/apache-spark,gengliangwang/spark,ddna1021/spark,dongjoon-hyun/spark,jiangxb1987/spark,apache-spark-on-k8s/spark,mahak/spark,bravo-zhang/spark,gengliangwang/spark,brad-kaiser/spark,aosagie/spark,saturday-shi/spark,markhamstra/spark,setjet/spark,facaiy/spark,haowu80s/spark,bravo-zhang/spark,tejasapatil/spark,aokolnychyi/spark,kissmetrics/spark,publicRoman/spark,wangmiao1981/spark,rezasafi/spark,huang1900/spark,kevinyu98/spark,huang1900/spark,big-pegasus/spark,jkbradley/spark,SnappyDataInc/spark,HyukjinKwon/spark,WindCanDie/spark,big-pegasus/spark,aray/spark,bOOm-X/spark,WindCanDie/spark,JerryLead/spark,shubhamchopra/spark,markhamstra/spark,icexelloss/spark,shaneknapp/spark,sureshthalamati/spark,jrshust/spark,nilsgrabbert/spark,metamx/spark,milliman/spark,mahak/spark,BryanCutler/spark,stanzhai/spark,eyalfa/spark,techaddict/spark,saltstar/spark,pronix/spark,hhbyyh/spark,sachintyagi22/spark,spark-test/spark,loneknightpy/spark,esi-mineset/spark,actuaryzhang/spark,wzhfy/spark,michalsenkyr/spark,yanboliang/spark,michalsenkyr/spark,apache/spark,ptkool/spark,joseph-torres/spark,hvanhovell/spark,rednaxelafx/apache-spark,MLnick/spark,UndeadBaneGitHub/spark,gioenn/xSpark,zero323/spark,adrian-ionescu/apache-spark,holdenk/spark,kevinyu98/spark,vinodkc/spark,darionyaphet/spark,icexelloss/spark,zero323/spark,ericvandenbergfb/spark,goldmedal/spark,shuangshuangwang/spark,markhamstra/spark,SnappyDataInc/spark,sureshthalamati/spark,rezasafi/spark,map222/spark,nilsgrabbert/spark,Aegeaner/spark,lxsmnv/spark,narahari92/spark,akopich/spark,haowu80s/spark,nlalevee/spark,Aegeaner/spark,dbtsai/spark,janewangfb/spark,ahnqirage/spark,shaneknapp/spark,huang1900/spark,michalsenkyr/spark,actuaryzhang/spark,haowu80s/spark,ConeyLiu/spark,aosagie/spark,andrewor14/spark,kiszk/spark,bravo-zhang/spark,aosagie/spark,zuotingbing/spark,guoxiaolongzte/spark,SHASHANKB/spark,tejasapatil/spark,bOOm-X/spark,jlopezmalla/spark,tengpeng/spark,skonto/spark,zzcclp/spark,vinodkc/spark,wzhfy/spark,liyichao/spark,esi-mineset/spark,MLnick/spark,kevinyu98/spark,highfei2011/spark,JerryLead/spark,matthewfranglen/spark,actuaryzhang/spark,szhem/spark,SHASHANKB/spark,highfei2011/spark,xuanyuanking/spark,loneknightpy/spark,icexelloss/spark,chuckchen/spark,HyukjinKwon/spark,facaiy/spark,cin/spark,eyalfa/spark,HyukjinKwon/spark,yanboliang/spark,bravo-zhang/spark,milliman/spark,bdrillard/spark,icexelloss/spark,Aegeaner/spark,ron8hu/spark,publicRoman/spark,BryanCutler/spark,gioenn/xSpark,srowen/spark,hvanhovell/spark,metamx/spark,stanzhai/spark,mzl9039/spark,alunarbeach/spark,someorz/spark,kevinyu98/spark,szhem/spark,wangyum/spark,facaiy/spark,chuckchen/spark,witgo/spark,milliman/spark,tengpeng/spark,Aegeaner/spark,ahnqirage/spark,mike0sv/spark,patrick-nicholson/spark,WindCanDie/spark,debugger87/spark,jrshust/spark,chuckchen/spark,huang1900/spark,shuangshuangwang/spark,skonto/spark,michalsenkyr/spark,highfei2011/spark,JerryLead/spark,jkbradley/spark,alunarbeach/spark,MLnick/spark,joseph-torres/spark,caneGuy/spark,brad-kaiser/spark,techaddict/spark,metamx/spark,ibm-research-ireland/sparkoscope,JoshRosen/spark,narahari92/spark,xuanyuanking/spark,ConeyLiu/spark,ueshin/apache-spark,lxsmnv/spark,ioana-delaney/spark,tejasapatil/spark,mdespriee/spark,rednaxelafx/apache-spark,publicRoman/spark,icexelloss/spark,zzcclp/spark,witgo/spark,ioana-delaney/spark,bravo-zhang/spark,ddna1021/spark,apache/spark,maropu/spark,hhbyyh/spark,pgandhi999/spark,someorz/spark,rikima/spark,ueshin/apache-spark,eyalfa/spark,SHASHANKB/spark,ueshin/apache-spark,SnappyDataInc/spark,taroplus/spark,chuckchen/spark,poffuomo/spark,kissmetrics/spark,ibm-research-ireland/sparkoscope,caneGuy/spark,nilsgrabbert/spark,debugger87/spark,vinodkc/spark,aosagie/spark,highfei2011/spark,Panos-Bletsos/spark-cost-model-optimizer,huang1900/spark,liutang123/spark,cin/spark,aokolnychyi/spark,nilsgrabbert/spark,kimoonkim/spark,SnappyDataInc/spark,rekhajoshm/spark,ron8hu/spark,rezasafi/spark,byakuinss/spark,guoxiaolongzte/spark,witgo/spark,JoshRosen/spark,techaddict/spark,zzcclp/spark,markhamstra/spark,kiszk/spark,gengliangwang/spark,ajaysaini725/spark,haowu80s/spark,MLnick/spark,shuangshuangwang/spark,mahak/spark,SnappyDataInc/spark,darionyaphet/spark,bravo-zhang/spark,zuotingbing/spark,ueshin/apache-spark,dhruve/spark,apache-spark-on-k8s/spark,pgandhi999/spark,joseph-torres/spark,taroplus/spark,ericvandenbergfb/spark,milliman/spark,dhruve/spark,cloud-fan/spark,poffuomo/spark,darionyaphet/spark,caneGuy/spark,liutang123/spark,Panos-Bletsos/spark-cost-model-optimizer,ddna1021/spark,someorz/spark,WeichenXu123/spark,actuaryzhang/spark,huang1900/spark,ahnqirage/spark,jiangxb1987/spark,pronix/spark,michalsenkyr/spark,dbtsai/spark,alunarbeach/spark,spark-test/spark,nlalevee/spark,JoshRosen/spark,joseph-torres/spark,byakuinss/spark,hvanhovell/spark,ConeyLiu/spark,map222/spark,eyalfa/spark,akopich/spark,pronix/spark,srowen/spark,rezasafi/spark,nilsgrabbert/spark,pgandhi999/spark,sachintyagi22/spark,apache-spark-on-k8s/spark,rezasafi/spark,yanboliang/spark,1haodian/spark,aokolnychyi/spark,ajaysaini725/spark,WindCanDie/spark,lvdongr/spark,zzcclp/spark,sahilTakiar/spark,rikima/spark,shaneknapp/spark,ron8hu/spark,zero323/spark,sachintyagi22/spark,wangyum/spark,nlalevee/spark,dongjoon-hyun/spark,srowen/spark,actuaryzhang/spark,joseph-torres/spark,ConeyLiu/spark,big-pegasus/spark,lvdongr/spark,big-pegasus/spark,esi-mineset/spark,jrshust/spark,jlopezmalla/spark,wangmiao1981/spark,janewangfb/spark,pronix/spark,zhouyejoe/spark,milliman/spark,sahilTakiar/spark,esi-mineset/spark,techaddict/spark,pgandhi999/spark,publicRoman/spark,metamx/spark,shubhamchopra/spark,xflin/spark,jrshust/spark,kissmetrics/spark,ajaysaini725/spark,sahilTakiar/spark,aosagie/spark,rikima/spark,darionyaphet/spark,zhouyejoe/spark,UndeadBaneGitHub/spark,ahnqirage/spark,sureshthalamati/spark,saturday-shi/spark,markhamstra/spark,panfengfeng/spark,sachintyagi22/spark,JoshRosen/spark,guoxiaolongzte/spark,wangmiao1981/spark,brad-kaiser/spark,spark-test/spark,skonto/spark,map222/spark