[Numpy-discussion] Multiplicity of an entry

Nils Wagner nwagner at iam.uni-stuttgart.de
Mon Oct 26 04:04:16 EDT 2009


Hi all,

how can I obtain the multiplicity of an entry in a list


a = ['abc','def','abc','ghij']

The multiplicity of 'abc' is 2.
                             'def' is 1.
                             'ghij' is 1.

Nils



More information about the NumPy-Discussion mailing list