def _has_unicode_fields(array):

    dtypes = (d[0] for d in array.dtype.fields.values())
    return any(d.kind == 'U' for d in dtypes)
Test aggregation: count
dataset/ETHPy150Open spacetelescope/PyFITS/pyfits/fitsrec.py/_has_unicode_fields--crossover with--dataset/ETHPy150Open sahana/eden/modules/unit_tests/s3/s3timeplot.py/PeriodTests.testAggregateCount