[Numpy-discussion] Multiplicity of an entry

Nils Wagner nwagner@iam.uni-stuttgart...
Mon Oct 26 03:04:16 CDT 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