numpy - Printing data Python -


i have following data

id        x        y     name 312       33.76    55.2   aaa 312       33.76    55.2   bbb 443       66.33    11.5   ccc 686       44.55           ddd 222                44.6   eee 423       88.3     23.6   fff 

i had make

popularity = dict(counter(data['id'])) print "id\tpopularity"  k, v in popularity.items():     print '{0:.0f}\t{1}'.format(k,v) 

to find out popularity

and had find out unique id using code

 uni_id = np.unique(data['id']) 

now want print out unique id x , y , popularity not name , need ignore column without x or y

how can combine code ? !


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -