I am using
text = np.sort(np.genfromtxt('new1', delimiter= ' ',dtype=None,usecols=[1,2]))
and while printing text, the result I get is space separated values.
[(10014024, 'GAM.SW') (10014031, 'GAM.SW') (10014032, 'GAM.SW')
(10014032, 'HAM.SW') (10014033, 'GAM.SW') (10014034, 'ZAM.SW')]
and not
[(10014024, 'GAM.SW'),(10014031, 'GAM.SW'),(10014032, 'GAM.SW'),
(10014032, 'HAM.SW'),(10014033, 'GAM.SW'),(10014034, 'ZAM.SW')]
Because of this, I am getting some error in the further part of the program.How can I get the comma separated value?
on comparing (10014024, 'GAM.SW') (10014022, 'GAM.SW')`, i am getting -1 – Vinodini Natrajan Nov 26 '16 at 12:19