[SPARK-15050][SQL] Put CSV and JSON options as Python csv and json function parameters
[SPARK-15050][SQL] Put CSV and JSON options as Python csv and json function parameters

## What changes were proposed in this pull request?

https://issues.apache.org/jira/browse/SPARK-15050

This PR adds function parameters for Python API for reading and writing `csv()`.

## How was this patch tested?

This was tested by `./dev/run_tests`.

Author: hyukjinkwon <gurwls223@gmail.com>
Author: Hyukjin Kwon <gurwls223@gmail.com>

Closes #12834 from HyukjinKwon/SPARK-15050.

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