I am trying to find the frequency of unique values in a column of a pandas dataframe I know how to get the unique values like this:
data_file.visiting_states()
returns :
array(['CA', 'VA', 'MT', nan, 'CO', 'CT'], dtype=object)
and I want to return the count of those unique values and I know I cant do .value_counts() because its a numpy array
pandas.Series(my_array).value_counts()