from __future__ import print_function import numpy as np values = [['a', 'b', 'c'], ['e', 'b', 'd'], ['a', 'b', 'c']] np_array = np.array(values) print (np.unique(np_array[:,1], return_index=False)) # should see: ['b']Enjoy!
Monday, November 30, 2015
Here is a quick example of how to get a unique value list from a numpy array.
Friday, November 6, 2015
If you have used any ArcGIS software over the years, and asked a question on the Esri or GeoStackExchange Forums you have probably encountered Dan Patterson. He has a great blog, which is full of knowledge any programmer, cartographer or GIS analyst should know.
I don't know the man, but I love reading his posts. I am sure you will too.
The web address is: https://geonet.esri.com/blogs/dan_patterson