0

haiii


Do anyone know how to convert array like this into [26 18 20]

because i have to plot graph for these value,

array is not allow me to do that ,i got from database table with data type varchar....problem is i shouldnot change the datatype ....

is there any way............?Please Help me!!!!!

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by pyTony
0
a = ['1','2','3']
# use map
b = map(lambda x:int(x), a)
# or
b = [ int(x) for x in a ]
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.