Fix example of tf_idf with minDocFreq
Fix example of tf_idf with minDocFreq

## What changes were proposed in this pull request?

The python example for tf_idf with the parameter "minDocFreq" is not properly set up because the same variable is used to transform the document for both with and without the "minDocFreq" parameter.
The IDF(minDocFreq=2) is stored in the variable "idfIgnore" but then it is the original variable "idf" used to transform the "tf" instead of the "idfIgnore".

## How was this patch tested?

Before the results for "tfidf" and "tfidfIgnore" were the same:
tfidf:
(1048576,[1046921],[3.75828890549])
(1048576,[1046920],[3.75828890549])
(1048576,[1046923],[3.75828890549])
(1048576,[892732],[3.75828890549])
(1048576,[892733],[3.75828890549])
(1048576,[892734],[3.75828890549])
tfidfIgnore:
(1048576,[1046921],[3.75828890549])
(1048576,[1046920],[3.75828890549])
(1048576,[1046923],[3.75828890549])
(1048576,[892732],[3.75828890549])
(1048576,[892733],[3.75828890549])
(1048576,[892734],[3.75828890549])

After the fix those are how they should be:
tfidf:
(1048576,[1046921],[3.75828890549])
(1048576,[1046920],[3.75828890549])
(1048576,[1046923],[3.75828890549])
(1048576,[892732],[3.75828890549])
(1048576,[892733],[3.75828890549])
(1048576,[892734],[3.75828890549])
tfidfIgnore:
(1048576,[1046921],[0.0])
(1048576,[1046920],[0.0])
(1048576,[1046923],[0.0])
(1048576,[892732],[0.0])
(1048576,[892733],[0.0])
(1048576,[892734],[0.0])

Author: Maxime Rihouey <maxime.rihouey@gmail.com>

Closes #15503 from maximerihouey/patch-1.

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