Debugging Numpy VisibleDeprecationWarning (ndarray from ragged nested sequences)
With a function that creates a ragged array: In [60]: def foo(): …: print(‘one’) …: x = np.array([[1],[1,2]]) …: return x …: In [61]: foo() one /usr/local/bin/ipython3:3: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, … Read more