I have the following condition:
df[‘hour’].value_counts()==df[‘hour’].value_counts().max()
i want to create a variable that holds the value of maximum occurrences.
as example:
if max occurrences is 55
at hour 19
, then i need a variable that holds the value 19