I have a pandas dataframe of this kind
d = {'col1': [1, [2,3]], 'col2': [[3,4,5], 4]}
d = pd.DataFrame(d)
print(d)
output:
col1 col2
0 1 [3, 4, 5]
1 [2, 3] 4
what is the best way to remove the brackets of all the list elements while printing this dataframe?