Message from Python discussions
November 2018
— Obviously it's a ParserError
I already have a tuple in this format a = [[4,10],[9,7],[11,2],[2,2]], however when I call it using cdist it says XA needs to be in 2D format
— So I realized I must remove commas between so it looks like [[4 10], ..
—
>>> arr = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]])
>>> arr
array([[ 1, 2, 3, 4],
[ 5, 6, 7, 8],
[ 9, 10, 11, 12]])
— Those are lists
— Which will give you syntax error
— This is toasting my brainz
— This wont cut it
— I need this
>>> [['44.781848' '20.417036']
['44.798537' '20.463362']
['44.831652' '20.225667']
['44.817959' '20.457271']]
— And I am getting this
>>> array([['44.779621', '20.415589'],
['44.760603', '20.414296'],
['44.749632', '20.422129']], dtype='<U9')
— How did you get it?
— I made a dict and called by index