I have an array "station" that contains two values [28450., 29980.]. These represent station names. I want to get a count of these stations in a new variable using numpy:
station_count = np.unique(station)
print("The number of unique stations is ", station_count)
gives me:
The number of unique stations is [28450. 29980.]
How do I get a number 2 instead of [28450. 29980.]. I have tried count but I don't seem to be getting the syntax correctly.