Closed mitjanikolaus closed 4 years ago
Use np.issubdtype() instead of isinstance() so that numpy datatypes are also recognized correctly. Further, add else statements to catch unsuccessful conversions.
This looks great, thank you!
Use np.issubdtype() instead of isinstance() so that numpy datatypes are also recognized correctly. Further, add else statements to catch unsuccessful conversions.