Hi,

I would like to use python to write a user-defined function that has 2 parameters: a column index and a transport method. The data are from a csv file.

It counts the occurrences of the transport method in the column index of the NumPy array and returns the total occurrences. May i know how should i go about it?

Thank you very much in advance.