I understand that I could use type() and isinstance() to check if a variable is of a certain type or belongs to certain class. I was wondering if there is a quick way to check if a variable is of a 'numeric' type, similar to isnumeric in MATLAB. It should return True if the variable is int, long, float, double, arrays of ints or floats etc. Any suggestions are greatly appreciated.
Thank you.