2 ms·
Or you could do def munge(data, convert=lambda x: x)
by christianmann 11y ago
Or you could do
def munge(data, convert=lambda x: x)
- ah- 11y agoThis is C++ style thinking, but that way it has to copy the array and run that function on every element. If it supports none it can just return the original data.