Home > other >  Pyrhon floating point comparisons in question
Pyrhon floating point comparisons in question

Time:12-02

Python machine learning beginner

Aba=abalone. Loc [abalone [' height '& lt;, 0.4:]]
DataPlot (aba)

Code to the abalone data set height is greater than or equal to 0.4 data excluding
But an error TypeError: '& lt; 'not supported between the instances of' STR 'and' int '
Floating point Numbers should not be compared with less than the number,
But it can normal execution code the author is not an error,

Pray god give directions

CodePudding user response:

Aba=abalone. Loc [abalone [' height '] <0.4] try

CodePudding user response:

Aba=abalone. Loc [abalone [' height '] <0.4, :)
  • Related