mode()
Calculates the most frequent value per row in a dataframe. If multiple values are the most frequent ones, take one of them at random.
df – A DataFrame with the values to get the modes from
DataFrame
seed – The random seed.
Returns a Series with the modes.
Series