Skip to main content

Def get_max(g): g.count().sort_values(by='count', ascending =False).loc[0,:]

Groupby().apply(get_max)

def get_max(g):
    g.count().sort_values(by='count', ascending =False).loc[0,:]

Groupby().apply(get_max)

Def get_max(g): g.count().sort_values(by='count', ascending =False).loc[0,:]

Groupby().apply(get_max)

def get_max(g):
    g.count().sort_values(by='count', ascending =False).loc[0,:]

Groupby().apply(get_max)
Source Link
amol goel
  • 341
  • 1
  • 6

Def get_max(g): g.count().sort_values(by='count', ascending =False).loc[0,:]

Groupby().apply(get_max)