In my pandas dataframe I have a column named "crashhour" which have two values that is offtime and picktime. How to take only the values of offtime. Below is the code of Column value count.
a=df.crashhour.value_counts()
And this is the output-
offtime 19639
picktime 14068
Name: crashhour, dtype: int64
I want to store only the offtime values in a variable like 19639 should be the output. How to do that?