Python2.7: new list from from a single column of existing list : Existing LIST columns:  list

    Index([u'id', u'last_checkin', u'name'], dtype='object')

New List: zlist

    for i in list:
      zhostname = i.get('name')
      #print zhostname
      if zhostname not in zlist:
           zlist.append(i)


In 1st list there are multiple entries for the same host with a different last_checkin date. For the new list I am trying add to the list when hostname does not already exist. But the new list seems to be an exact copy of the first list. It is like it is not checking for only the host name in the new list. I do not care about the last_checkin date for either entry.

How does it validate the entry if I am only checking the name of the host?

i.e [if zhostname not in zlist:
       zlist.append(i)]

So when it looks for the hostname in zlist is it also validating the other columns and sees it is different based on the whole row?

Hopefully this is not clear as mud.