Hacker News new | ask | show | jobs
by happy-go-lucky 3237 days ago
You could try np.isscalar() and np.array().ndim in NumPy.