DataPipeline/Processing.py
def removeoutliers(self, x, y, percentile=0.95):
        """Remove outliers based on nth percentile"""
        p = self.percentile(x,y,percentile)
        print p
        rx=[]; ry=[]
        for i,j in zip(x,y):
            print j,p
            if j<p:
                rx.append(i)
                ry.append(j)
        return rx,ry
Remove outliers based on nth percentile
Remove outliers based on nth percentile
Remove outliers based on nth percentile
def removeoutliers(self, x, y, percentile=0.95):
        p = self.percentile(x,y,percentile)
        print p
        rx=[]; ry=[]
        for i,j in zip(x,y):
            print j,p
            if j<p:
                rx.append(i)
                ry.append(j)
        return rx,ry
def removeoutliers ( self , x , y , percentile = 0.95 ) : p = self . percentile ( x , y , percentile ) print p rx = [ ] ; ry = [ ] for i , j in zip ( x , y ) : print j , p if j < p : rx . append ( i ) ry . append ( j ) return rx , ry
Remove outliers based on nth percentile
Remove outliers based on nth percentile
"""Remove outliers based on nth percentile"""
self
x
y
percentile