Skip to main content
added 74 characters in body
Source Link
tschm
  • 3k
  • 7
  • 37
  • 46

Your problem is actually a simple transform acting on the columns:

def f(s): return s/s.max() frame.apply(f, axis=0) 

Or even more terse:

 frame.apply(lambda x: x/x.max(), axis=0) 

Your problem is actually a simple transform acting on the columns:

def f(s): return s/s.max() frame.apply(f, axis=0) 

Your problem is actually a simple transform acting on the columns:

def f(s): return s/s.max() frame.apply(f, axis=0) 

Or even more terse:

 frame.apply(lambda x: x/x.max(), axis=0) 
Source Link
tschm
  • 3k
  • 7
  • 37
  • 46

Your problem is actually a simple transform acting on the columns:

def f(s): return s/s.max() frame.apply(f, axis=0)