I have been trying to change a list of 2D coordinates with square brackets to curly brackets so I can plot the set of points in Mathematica. However, it does not plot because it puts quotation marks around each numeric value. Why is it doing this, and what should I change? The original .csv file looks like [x1, y1],[x2, y2],... and I want {{x1,y1},{x2,y2},...}
My attempt:
list = Import["C:\\Users\Kenny\Python\AngleTop.csv"];
listy = Flatten[list, 1];
flat1 = StringDelete[listy, "["];
flat2 = StringDelete[flat1, "]"];
flat3 = StringDelete[flat2, " "];
party = Partition[flat3, 2];
DensityHistogram[party]
[x1, y1],[x2, y2]
all on one line or split across multiple lines? No spacing between, only commas? $\endgroup$