{
"key1" : <list of strings>,
"key2" : <list of integeres> }
I want to change type of 'key2' list to int. I have already tried looping over and using
v = int(v)
I have also tried mapping int to whole list.
map(int, list)
Any other way I can accomplish this task?
Current Code:
integer_columns = ["col1","col2","col3","col4"]
for col in integer_columns:
col_list = config_data[col]
col_list = list(map(int, col_list))