this is my python code
dataheader = []
for listhead in head[11:]:
dataheader.append(listhead)
databody = []
for listbody in body[11:]:
databody.append(listbody)
combine = []
for i in range(len(databody)):
combine.append(str(dataheader[i]))
combine.append(str(databody[i]))
rawdata = np.reshape(combine, (-1, 2))
print(rawdata)
from that code i get result like this
dataheader = ['2020/06/20', '2020/07/20', '2020/08/20']
databody = ['6', '7', '8']
rawdata = [['2020/06/20' '6'], ['2020/07/20' '7'], ['2020/08/20' '8']]
i want to change result of rawdata like this
rawdata = [['2020/06/20', '6'], ['2020/07/20', '7'], ['2020/08/20', '8']]
and like this
rawdata = [{'2020/06/20', '6'}, {'2020/07/20', '7'}, {'2020/08/20', '8'}]
please help me to fix this code. thank you