Python 2.7 Need your help with creating a 2D scatterplot from a Numpy array of 3 dimension where Col0 is used for Group Tag and Col 1 and 2 for the coordinates (X, Y).
Numpy array looks like below
array([['A', '4.83186388889', '2.34534666667'],
['A', '4.87818611111', '2.80832888889'],
['A', '4.82518611111', '2.33834222222'],
['B', '4.53763888889', '-11.88424'],
['B', '4.503125', '-11.9406266667'],
['B', '4.45975555556', '-11.9688044444'],
['C', '6.12376666667', '-9.61480888889'],
['C', '6.20991666667', '-9.66523111111'],
['C', '6.12281388889', '-9.61702222222'],
['D', '6.46020833333', '-11.9756488889'],
['D', '6.43584166667', '-11.8586622222'],
['D', '6.43401111111', '3.88036888889'],
....
dtype='|S21')
Dictionary cannot be used as it stores unique keys (groups) and I do not have an idea how to convert it into Pandas DataFrame with a proper format.
Tried like below previously and even though it was printed OK it did not work for the chart.
dataset = pd.DataFrame(**array**, columns = ['Description','X','Y'])
dataset[['X','Y']] = dataset[['X','Y']].apply(pd.to_numeric)
I'd like to create a 2D scatterplot for all my group tag's (A, B, C, ...) - of multiple sets of coordinates (x,y) - separate color per group (A, B, C, ...)
Looking forward to your help.