oreilly_machine_learning_from_scratch
oreilly_machine_learning_from_scratch copied to clipboard
Update exercise2.py
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]`