My array is 2D numpystr352 and contains a mix of numbers and strings.
I want to convert it to float numpy so that the string elements should convert to nan
(without using Pandas).
For example:
import numpy as np
x = np.array([[1, 2, 'tom'], [4, 'Manu', 6]])
What I want is:
x = np.array([[1, 2, nan], [4, nan, 6]])