ENH: improve stats.nanmedian more by assuming nans are rare
ENH: improve stats.nanmedian more by assuming nans are rare

Move nans to end of array instead of creating a new array without them.
This is faster under the reasonable assumption that nans are rare.

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