[SPARK-9902] [MLLIB] Add Java and Python examples to user guide for 1-sample KS test
[SPARK-9902] [MLLIB] Add Java and Python examples to user guide for 1-sample KS test

added doc examples for python.

Author: jose.cambronero <jose.cambronero@cloudera.com>

Closes #8154 from josepablocam/spark_9902.

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