3 ms·
Neat trick. Didn't know about it. In pandas it would be item.foo = bar, _as long as_ bar isn't something you can iterate over.
by maest 5y ago
Neat trick. Didn't know about it.
In pandas it would be item.foo = bar, _as long as_ bar isn't something you can iterate over.
- pletnes 5y agoNumpy is all about this. E.g y = np.sin(x). X and y are arrays and you can think of them as «all values of x and y» or «the physical variables x and y»