map . , Python2 - partial
>>> a = [['2.3','.2'],['-6.3','0.9']]
>>> from functools import partial
>>> map(partial(map, float), a)
[[2.3, 0.2], [-6.3, 0.9]]
I don't think there is a good way to convert this to Python3, though
>>> list(map(list, map(partial(map, float), a))) #YUKKK!
[[2.3, 0.2], [-6.3, 0.9]]
source
share