Python Forum

Full Version: Convert row data to columns based on keyword
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have two columns of data with string names and values (x, y). I would like to convert it to columns.

For example
Column 1 Column 2
String1 String 2
x1 y1
x2 y2
x3 y3

String1 String2
x1 y1
x2 y2
x3 y3

String1 String2
x1 y1
x2 y2
x3 y3


What is the best way to get this data into columns so that it can be graphed. String1 and String2 have the same names. Any help would be appreciated.
What have you tried?