I have a column in a dataframe that is
UC WR
V001 A, B, C, nan, A, C, D
C001 nan, C, D, A, nan, A
C002 C, B, B, A, A, A
C003 A, C, A, C, B, nan
I'm not sure what I'm doing wrong, but I'm not able to get rid of the nans. From this column, I want to have a different column, or a dictionary that gives me the frequency count of the different values in WR.
UC WR Count
V001 {A: 2, B:1, C:2, D:1}
C001 {A:2, C:1, D:1}
C002 {A:3, B:2, C:1}
C003 {A:2, B:1, C:2}
or a similar dictionary. Thanks! :)