I'm still learning with this technology. May I know how to put all values in one column using python and xlsx writer?
Ex.
my_dict = {
'Bob': ['eating', 'watching', 'drinking'],
'Ann': ['shopping', 'eating', 'drawing'],
'May': ['riding', 'singing', 'dancing']
}
What I did was putting it in another column temporarily.
col_num = 0
row_num = 7
for key, value in my_dict.items():
worksheet.write(row_num, col_num, key)
worksheet.write_column(row_num + 1, col_num, value)
col_num += 1
May I know how can I achieve this kind of format? Hoping to get your opinions and suggestions. Thank you
| Name | Hobby |
| Bob | eating |
| watching | |
| drinking | |
| Ann | shopping |
| eating | |
| drawing | |
| May | riding |
| singing | |
| dancing |
Hi @Hemangi Rupareliya
I am not able to reply to your comment below. I appreciate your response.
I tried the string but it only returned the single letter per row only. Do you have examples for strings instead of integer?