Is there a better way to convert string list having nan values to list : input list = `'[12,2,4,nan,0]'`
ouput = `['12','2','4','nan','0']`

One option is yaml.safe_load(), But it's too slow. I am looking for a efficient way to transform.