# use to reshape data df_tall = df.melt(id_vars=["col1", "col2"], value_vars=["val1", "val2"], var_name=["str"], value_name='str')
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter