Spot the bug in the array standardizer

from NumPy
Python 3.14 intermediate 4 min 2 issues to find

Find the type and ownership bugs in this generated standardizer.

Python
import numpy as np

def standardize_tail(samples):
    values = np.asarray(samples)
    selected = values[:, 1:]
    selected -= selected.mean(axis=0)
    return selected
Open in playground
Report an error