0

here is my code, but i'm not able to understand that why it is giving me value 13.000 in the output.



    data[data.Fare>500].index
    output: Int64Index([258, 679, 737, 343], dtype='int64')
    
    data.iloc[[258, 679, 737, 343], 9]
    output: 
    258    512.3292
    679    512.3292
    737    512.3292
    343     13.0000
    Name: Fare, dtype: float64

Swapnil
  • 11
  • 1
  • 4

0 Answers0