New to python but ran into something I don't understand. The following line of code:
diff = features[0:] - test[0] # <- this is what I don't get
is used thusly:
x = diff[i]
to return the element-wise difference between features[i] and test[0]. Can anyone point to a language reference for this or explain it? I understand how the result can be developed using "def" or "lambda" but I don't understand the construction.
thanks!
featuresis.