#NEWLINE# def test_quantile_interpolation( self ) : #NEWLINE# #INDENT# if _np_version_under1p9 : #NEWLINE# #INDENT# raise nose . SkipTest ( 'Numpy version is under 1.9' ) #NEWLINE# #UNINDENT# from numpy import percentile #NEWLINE# q = self . ts . quantile ( 0.1 , interpolation = 'linear' ) #NEWLINE# self . assertEqual ( q , percentile ( self . ts . valid ( ) , 10 ) ) #NEWLINE# q1 = self . ts . quantile ( 0.1 ) #NEWLINE# self . assertEqual ( q1 , percentile ( self . ts . valid ( ) , 10 ) ) #NEWLINE# self . assertEqual ( q , q1 )