So i'm having serval data store in python dictionary, and I wanted to put them into one .txt file. Does anyone know how i can do that?
Example:
dict={'a': array([1,2,3]), 'b': array([10,11,12]), 'c': array([20,21,22])}
desired output in txt file:
a ,b ,c
1 ,10 ,20
2 ,11 ,21
3 ,12 ,22
Please let me know, really appreciate your help .
I've try using the for loop and the json file type, but still couldn't figure out. I'm new here, so please let me know if need more info, thanks.