Python

Documentations

lambda

Change the item type in a list

x = np.arange(1, 5)
x = list(map(lambda a: str(a), x))

Strip the white space in a list

x = [' One', ' two ']
x = list(map(lambda a: a.strip(), x))