This should be a really easy one, but I can't figure it out:: I have a dataframe, df, and it has two string values, "normal" and "odd". I'd like to find out how many are in either catagory::
type(bro_df)
pandas.core.frame.DataFrame
print(len(bro_df))
2000000
type(bro_df['label'])
pandas.core.series.Series
print(len(bro_df['label'] == 'normal'))
2000000
print(len(bro_df['label'] == 'odd'))
2000000
What's going on??!?!
Thanks, Nic