#NEWLINE# def test_floating_index_doc_example( self ) : #NEWLINE# #INDENT# index = Index ( [ 1.5 , 2 , 3 , 4.5 , 5 ] ) #NEWLINE# s = Series ( range ( 5 ) , index = index ) #NEWLINE# self . assertEqual ( s [ 3 ] , 2 ) #NEWLINE# self . assertEqual ( s . ix [ 3 ] , 2 ) #NEWLINE# self . assertEqual ( s . loc [ 3 ] , 2 ) #NEWLINE# self . assertEqual ( s . iloc [ 3 ] , 3 )