title: call multiple argument function in applymap in python
body: <p>I wrote a function for giving colors to the variables for pandas data frame.
  there I used two arguments first one is variables list and another is threshold values list(i'am having only two values in the list e.g, say 30 and 50) for color the variables and function as follows::</p>
  
  <pre><code>def color_code(val,values):
      if val &lt;= values[0]:
         color = 'green'
      elif values[0]&lt;val&lt;=values[1]:
         color = 'yellow'
      elif val &gt;values[1]:
         color = 'red'
      return 'background-color: %s' % color
  </code></pre>
  
  <p>Now I want to call this function.For that i tried the following.</p>
  
  <pre><code>df1=df.style.applymap(color_code,subset=['col1','col2'],values=[30,50])
  </code></pre>
  
  <p>but the above call is not working for me.</p>
  
  <p>Can anyone help me to solve this.</p>
  
  <p>Thanks in advance.</p>