oreilly_machine_learning_from_scratch icon indicating copy to clipboard operation
oreilly_machine_learning_from_scratch copied to clipboard

Update exercise2.py

Open yurkot opened this issue 6 months ago • 0 comments

Fix to future warning:

FutureWarning: Series.__getitem__ treating keys as positions is deprecated. In a future version, integer keys will always be treated as labels (consistent with DataFrame behavior). To access a value by position, use `ser.iloc[pos]`

yurkot avatar Aug 04 '25 15:08 yurkot