def objectcount ( data , key ) : objkey = key . upper ( ) return len ( data . dt [ objkey ] )
how to count number of values attached to key python
return the count of objects of key
def objectcount(data, key):
    """return the count of objects of key"""
    objkey = key.upper()
    return len(data.dt[objkey])