Faces of GIS

This sample notebook tries to re-create Esri's Faces of GIS Flickr stream using public ArcGIS Online profiles.

It iterates over a list of common last names from a .csv file and searches ArcGIS Online for users matching those last names. Then it displays the user's profile if the users' profile contains a thumbnail.

Organization administrators can search for members in their ArcGIS Online organization or an internal portal in a similar manner and update their properties as needed.

Note: To run this sample, you need the pandas library in your conda environment. If you don't have the library, install it by running the following command from cmd.exe or your shell

conda install pandas
import pandas as pd
from arcgis.gis import GIS
from IPython.display import display

Data preparation

To run through the sample, we prepare a .csv file that contains a list of common last names. Then we use a Python data analysis library called pandas to read the file as input to do a search for users from ArcGIS Online.

df = pd.read_csv('data/lastnames.csv')
Surname Approximate % Rank
0 SMITH 2,501,922 1.006 1
1 JOHNSON 2,014,470 0.810 2
2 WILLIAMS 1,738,413 0.699 3
gis = GIS()

for index, row in df.iterrows():
    if index == 6:
    users = gis.users.search(row['Surname'])
    for user in users:
        if user['thumbnail'] is not None:
Louis March-Smith

Bio: Trying to be like the mighty Captain Coin-Toss. Legend
First Name: Louis
Last Name: March-Smith
Username: 07_MarchSmith
Joined: September 13, 2016
Allison Smith

First Name: Allison
Last Name: Smith
Username: 19allsmi
Joined: October 04, 2013
Richard Johnson

Bio: Hello, my name is Ritchie Johnson. I like Minecraft, LEGO®, and Myst. www.indianajones5390.weebly.com www.twitter.com/indiajones5390 https://www.youtube.com/channel/UCUdCGDMg96YU69IPp_qGcYA rcj5390@gmail.com rcjsmurf@yahoo.com
First Name: Richard
Last Name: Johnson
Username: 600012083
Joined: April 07, 2016
Christopher Jones

Bio: Chris Jones in Program Director of the CoolClimate Network, a research consortium in the Energy and Resources Group at UC Berkeley. http://coolclimate.berkeley.edu/chris
First Name: Christopher
Last Name: Jones
Username: 207194_CAL
Joined: October 28, 2016
Sterling Burgess

Bio: I have 15 year in information technology. My interest now is transitioning my information technology skills to the growing green industry, and I feel that I am a prime candidate. During the last year I have been studying, reading, watching videos, and compiling a list of sustainable Green industry companies’ websites, so I can stay abreast of the progress made within this industry. I have also finished an online course on Energy in the Global Market Place, and a course in Disaster Preparedness. Also I am researching Everblue, which is a leading sustainability training institute worldwide. I am extremely passionate about being successful. I have researched President Obama’s green industry initiative, and Harry Reid, who replied to a letter from me explaining other avenues I should pursue. And I follow Van Jones, he is an American environmental advocate, and President of Rebuild the Dream. My ultimate goal is to achieve the skill level of sustainable/green architect, and design buildings, homes, and retrofit all types of edifices. I believe my experience, and worldview will help me in any job.
First Name: Sterling
Last Name: Burgess
Username: 621sterling
Joined: May 01, 2014
Alex Jones

First Name: Alex
Last Name: Jones
Username: a_jones
Joined: December 14, 2011
tt brown

First Name: tt
Last Name: brown
Username: 12123232
Joined: January 25, 2016
Kylie Brown

First Name: Kylie
Last Name: Brown
Username: 154049
Joined: August 21, 2015
Pierce Brown

Bio: =)
First Name: Pierce
Last Name: Brown
Username: 170856Brown
Joined: November 11, 2016
George Brown

Bio: GIS Manager, GISP, Jacksonville Sheriff's Office Jacksonville, FL 25 Years working with ESRI Software.
First Name: George
Last Name: Brown
Username: 5471gab
Joined: November 09, 2010
Adalia Davis

First Name: Adalia
Last Name: Davis
Username: aadavis1
Joined: February 11, 2014
Adalia Davis

Bio: Areas of Interest: project based learning, multiple intelligence theory and geospatial technologies. For more information about me and what I do visit http://www.adaliadavis.com
First Name: Adalia
Last Name: Davis
Username: adaliadavis
Joined: May 25, 2011

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.