BUG: signal: welch: call detrend instead of doing it by hand.
BUG: signal: welch: call detrend instead of doing it by hand.

To support detending via a polynomial, we could extend detrend.

mikebenfield/scipy,josephcslater/scipy,Gillu13/scipy,giorgiop/scipy,tylerjereddy/scipy,mdhaber/scipy,sriki18/scipy,lhilt/scipy,petebachant/scipy,niknow/scipy,richardotis/scipy,Newman101/scipy,mingwpy/scipy,vigna/scipy,bkendzior/scipy,chatcannon/scipy,gef756/scipy,zaxliu/scipy,andyfaff/scipy,newemailjdm/scipy,giorgiop/scipy,FRidh/scipy,vanpact/scipy,jonycgn/scipy,maciejkula/scipy,haudren/scipy,jakevdp/scipy,Srisai85/scipy,apbard/scipy,sonnyhu/scipy,endolith/scipy,ortylp/scipy,WillieMaddox/scipy,piyush0609/scipy,Shaswat27/scipy,gfyoung/scipy,person142/scipy,maciejkula/scipy,gfyoung/scipy,matthewalbani/scipy,witcxc/scipy,ndchorley/scipy,rgommers/scipy,aeklant/scipy,matthew-brett/scipy,sargas/scipy,Dapid/scipy,e-q/scipy,anielsen001/scipy,lukauskas/scipy,jonycgn/scipy,mortada/scipy,niknow/scipy,piyush0609/scipy,minhlongdo/scipy,njwilson23/scipy,endolith/scipy,fredrikw/scipy,vanpact/scipy,Newman101/scipy,ChanderG/scipy,trankmichael/scipy,petebachant/scipy,FRidh/scipy,anntzer/scipy,trankmichael/scipy,rmcgibbo/scipy,behzadnouri/scipy,sriki18/scipy,matthew-brett/scipy,person142/scipy,matthew-brett/scipy,nvoron23/scipy,rmcgibbo/scipy,Eric89GXL/scipy,endolith/scipy,gdooper/scipy,aman-iitj/scipy,josephcslater/scipy,nonhermitian/scipy,kleskjr/scipy,Eric89GXL/scipy,anntzer/scipy,gertingold/scipy,ndchorley/scipy,lhilt/scipy,anielsen001/scipy,zxsted/scipy,mingwpy/scipy,Srisai85/scipy,larsmans/scipy,efiring/scipy,mortonjt/scipy,vigna/scipy,richardotis/scipy,newemailjdm/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,newemailjdm/scipy,larsmans/scipy,zxsted/scipy,sriki18/scipy,anielsen001/scipy,aman-iitj/scipy,hainm/scipy,lukauskas/scipy,kalvdans/scipy,aman-iitj/scipy,maniteja123/scipy,chatcannon/scipy,mortada/scipy,Stefan-Endres/scipy,felipebetancur/scipy,jakevdp/scipy,ChanderG/scipy,dch312/scipy,FRidh/scipy,argriffing/scipy,matthewalbani/scipy,maciejkula/scipy,ChanderG/scipy,josephcslater/scipy,vhaasteren/scipy,jor-/scipy,jseabold/scipy,behzadnouri/scipy,jjhelmus/scipy,giorgiop/scipy,pnedunuri/scipy,nonhermitian/scipy,nmayorov/scipy,mtrbean/scipy,Dapid/scipy,nmayorov/scipy,newemailjdm/scipy,arokem/scipy,rgommers/scipy,haudren/scipy,fredrikw/scipy,pizzathief/scipy,mingwpy/scipy,matthewalbani/scipy,witcxc/scipy,Gillu13/scipy,nvoron23/scipy,Kamp9/scipy,njwilson23/scipy,aman-iitj/scipy,ogrisel/scipy,kleskjr/scipy,niknow/scipy,mhogg/scipy,ilayn/scipy,richardotis/scipy,behzadnouri/scipy,anielsen001/scipy,andim/scipy,WillieMaddox/scipy,ndchorley/scipy,WillieMaddox/scipy,woodscn/scipy,Shaswat27/scipy,njwilson23/scipy,nonhermitian/scipy,grlee77/scipy,juliantaylor/scipy,dch312/scipy,ilayn/scipy,WillieMaddox/scipy,richardotis/scipy,ortylp/scipy,fredrikw/scipy,njwilson23/scipy,e-q/scipy,fredrikw/scipy,argriffing/scipy,apbard/scipy,surhudm/scipy,scipy/scipy,rgommers/scipy,matthewalbani/scipy,witcxc/scipy,felipebetancur/scipy,Dapid/scipy,kalvdans/scipy,jseabold/scipy,grlee77/scipy,fernand/scipy,anielsen001/scipy,lhilt/scipy,mgaitan/scipy,rmcgibbo/scipy,befelix/scipy,mgaitan/scipy,mtrbean/scipy,richardotis/scipy,jseabold/scipy,pbrod/scipy,pnedunuri/scipy,dch312/scipy,pizzathief/scipy,newemailjdm/scipy,felipebetancur/scipy,andyfaff/scipy,arokem/scipy,jamestwebber/scipy,ChanderG/scipy,aman-iitj/scipy,mhogg/scipy,mikebenfield/scipy,piyush0609/scipy,aman-iitj/scipy,maniteja123/scipy,mortada/scipy,jamestwebber/scipy,petebachant/scipy,woodscn/scipy,Newman101/scipy,Eric89GXL/scipy,mortada/scipy,Stefan-Endres/scipy,jonycgn/scipy,ales-erjavec/scipy,Gillu13/scipy,ChanderG/scipy,andyfaff/scipy,fernand/scipy,niknow/scipy,befelix/scipy,njwilson23/scipy,haudren/scipy,vhaasteren/scipy,witcxc/scipy,mgaitan/scipy,Dapid/scipy,jor-/scipy,vanpact/scipy,andyfaff/scipy,WarrenWeckesser/scipy,jakevdp/scipy,pizzathief/scipy,jor-/scipy,befelix/scipy,zaxliu/scipy,hainm/scipy,mtrbean/scipy,cpaulik/scipy,grlee77/scipy,vanpact/scipy,piyush0609/scipy,vigna/scipy,ogrisel/scipy,fredrikw/scipy,Shaswat27/scipy,jonycgn/scipy,endolith/scipy,WillieMaddox/scipy,dominicelse/scipy,anielsen001/scipy,futurulus/scipy,kleskjr/scipy,raoulbq/scipy,mikebenfield/scipy,perimosocordiae/scipy,kleskjr/scipy,lhilt/scipy,felipebetancur/scipy,apbard/scipy,mgaitan/scipy,piyush0609/scipy,vberaudi/scipy,ChanderG/scipy,giorgiop/scipy,raoulbq/scipy,vhaasteren/scipy,WarrenWeckesser/scipy,larsmans/scipy,lukauskas/scipy,zaxliu/scipy,mortonjt/scipy,giorgiop/scipy,mikebenfield/scipy,perimosocordiae/scipy,befelix/scipy,sargas/scipy,rmcgibbo/scipy,woodscn/scipy,trankmichael/scipy,ogrisel/scipy,bkendzior/scipy,ales-erjavec/scipy,haudren/scipy,apbard/scipy,zerothi/scipy,pyramania/scipy,pschella/scipy,scipy/scipy,jamestwebber/scipy,pbrod/scipy,pnedunuri/scipy,dominicelse/scipy,njwilson23/scipy,anntzer/scipy,sonnyhu/scipy,Newman101/scipy,andyfaff/scipy,bkendzior/scipy,fernand/scipy,aeklant/scipy,fredrikw/scipy,Kamp9/scipy,WarrenWeckesser/scipy,futurulus/scipy,juliantaylor/scipy,maniteja123/scipy,petebachant/scipy,giorgiop/scipy,pyramania/scipy,maciejkula/scipy,argriffing/scipy,Kamp9/scipy,ales-erjavec/scipy,niknow/scipy,ilayn/scipy,Srisai85/scipy,ortylp/scipy,aarchiba/scipy,minhlongdo/scipy,gef756/scipy,mhogg/scipy,Srisai85/scipy,zaxliu/scipy,perimosocordiae/scipy,kalvdans/scipy,jjhelmus/scipy,sauliusl/scipy,trankmichael/scipy,rgommers/scipy,newemailjdm/scipy,aarchiba/scipy,sargas/scipy,raoulbq/scipy,maniteja123/scipy,minhlongdo/scipy,jamestwebber/scipy,aeklant/scipy,jjhelmus/scipy,zerothi/scipy,maciejkula/scipy,vberaudi/scipy,Srisai85/scipy,ilayn/scipy,surhudm/scipy,sriki18/scipy,Eric89GXL/scipy,Shaswat27/scipy,Kamp9/scipy,vhaasteren/scipy,zerothi/scipy,gertingold/scipy,dch312/scipy,hainm/scipy,FRidh/scipy,jsilter/scipy,efiring/scipy,apbard/scipy,mdhaber/scipy,scipy/scipy,andim/scipy,Gillu13/scipy,FRidh/scipy,mingwpy/scipy,chatcannon/scipy,vanpact/scipy,gef756/scipy,mhogg/scipy,kleskjr/scipy,jor-/scipy,arokem/scipy,nmayorov/scipy,matthew-brett/scipy,piyush0609/scipy,efiring/scipy,gdooper/scipy,trankmichael/scipy,nonhermitian/scipy,argriffing/scipy,jor-/scipy,mhogg/scipy,vhaasteren/scipy,mtrbean/scipy,haudren/scipy,pschella/scipy,gef756/scipy,andim/scipy,mdhaber/scipy,Newman101/scipy,zaxliu/scipy,sonnyhu/scipy,behzadnouri/scipy,perimosocordiae/scipy,gdooper/scipy,rgommers/scipy,WarrenWeckesser/scipy,efiring/scipy,minhlongdo/scipy,behzadnouri/scipy,mortonjt/scipy,scipy/scipy,josephcslater/scipy,gfyoung/scipy,person142/scipy,Eric89GXL/scipy,larsmans/scipy,befelix/scipy,zxsted/scipy,cpaulik/scipy,larsmans/scipy,vigna/scipy,sauliusl/scipy,jseabold/scipy,chatcannon/scipy,pbrod/scipy,mortonjt/scipy,fernand/scipy,futurulus/scipy,Stefan-Endres/scipy,dominicelse/scipy,zxsted/scipy,gertingold/scipy,dominicelse/scipy,behzadnouri/scipy,hainm/scipy,zxsted/scipy,futurulus/scipy,pizzathief/scipy,gertingold/scipy,jsilter/scipy,Dapid/scipy,ortylp/scipy,juliantaylor/scipy,hainm/scipy,trankmichael/scipy,futurulus/scipy,fernand/scipy,minhlongdo/scipy,tylerjereddy/scipy,Srisai85/scipy,minhlongdo/scipy,jjhelmus/scipy,mikebenfield/scipy,person142/scipy,bkendzior/scipy,andim/scipy,efiring/scipy,jseabold/scipy,ortylp/scipy,raoulbq/scipy,nvoron23/scipy,nmayorov/scipy,lukauskas/scipy,FRidh/scipy,cpaulik/scipy,nvoron23/scipy,jjhelmus/scipy,endolith/scipy,jonycgn/scipy,felipebetancur/scipy,zxsted/scipy,hainm/scipy,Stefan-Endres/scipy,gfyoung/scipy,lukauskas/scipy,aarchiba/scipy,kalvdans/scipy,vberaudi/scipy,gdooper/scipy,cpaulik/scipy,surhudm/scipy,anntzer/scipy,Stefan-Endres/scipy,woodscn/scipy,WillieMaddox/scipy,mortonjt/scipy,maniteja123/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,mtrbean/scipy,dominicelse/scipy,sriki18/scipy,haudren/scipy,ales-erjavec/scipy,mortada/scipy,vigna/scipy,sauliusl/scipy,mortada/scipy,pyramania/scipy,futurulus/scipy,Dapid/scipy,niknow/scipy,aarchiba/scipy,gef756/scipy,e-q/scipy,tylerjereddy/scipy,ndchorley/scipy,sonnyhu/scipy,arokem/scipy,vberaudi/scipy,sonnyhu/scipy,zerothi/scipy,fernand/scipy,woodscn/scipy,rmcgibbo/scipy,richardotis/scipy,perimosocordiae/scipy,argriffing/scipy,ndchorley/scipy,andyfaff/scipy,ogrisel/scipy,vberaudi/scipy,sriki18/scipy,larsmans/scipy,petebachant/scipy,ndchorley/scipy,Eric89GXL/scipy,jsilter/scipy,e-q/scipy,andim/scipy,tylerjereddy/scipy,nvoron23/scipy,nmayorov/scipy,chatcannon/scipy,vhaasteren/scipy,mgaitan/scipy,pnedunuri/scipy,gfyoung/scipy,woodscn/scipy,nonhermitian/scipy,kalvdans/scipy,mgaitan/scipy,jamestwebber/scipy,vanpact/scipy,cpaulik/scipy,mhogg/scipy,matthewalbani/scipy,endolith/scipy,andim/scipy,pschella/scipy,rmcgibbo/scipy,aarchiba/scipy,pschella/scipy,vberaudi/scipy,maniteja123/scipy,petebachant/scipy,jseabold/scipy,mortonjt/scipy,surhudm/scipy,ales-erjavec/scipy,argriffing/scipy,efiring/scipy,chatcannon/scipy,grlee77/scipy,aeklant/scipy,sonnyhu/scipy,zaxliu/scipy,witcxc/scipy,scipy/scipy,felipebetancur/scipy,cpaulik/scipy,anntzer/scipy,gertingold/scipy,mdhaber/scipy,aeklant/scipy,Shaswat27/scipy,lukauskas/scipy,mingwpy/scipy,jsilter/scipy,sargas/scipy,jakevdp/scipy,kleskjr/scipy,sauliusl/scipy,anntzer/scipy,lhilt/scipy,mingwpy/scipy,zerothi/scipy,surhudm/scipy,pbrod/scipy,pyramania/scipy,jonycgn/scipy,Kamp9/scipy,sargas/scipy,dch312/scipy,sauliusl/scipy,pizzathief/scipy,pyramania/scipy,pschella/scipy,Shaswat27/scipy,sauliusl/scipy,gdooper/scipy,mtrbean/scipy,ortylp/scipy,pnedunuri/scipy,matthew-brett/scipy,pbrod/scipy,raoulbq/scipy,ilayn/scipy,zerothi/scipy,Newman101/scipy,ilayn/scipy,ales-erjavec/scipy,pbrod/scipy,mdhaber/scipy,raoulbq/scipy,ogrisel/scipy,grlee77/scipy,arokem/scipy,josephcslater/scipy,surhudm/scipy,Gillu13/scipy,nvoron23/scipy,person142/scipy,mdhaber/scipy,gef756/scipy,jsilter/scipy,juliantaylor/scipy,Kamp9/scipy,scipy/scipy,jakevdp/scipy,pnedunuri/scipy,Gillu13/scipy,juliantaylor/scipy,perimosocordiae/scipy,e-q/scipy,bkendzior/scipy