title: using python how to give 0, 1 , 2 for ternary variables?
body: <p>I have <code>csv</code> file, with column names of: PH, K, Zn, S, Fe ...so on. For each column there hare 3 different types of output, for example:</p>
  
  <pre><code>PH       S       Zn     Fe         Cu   Mn
  Acidic   Low    Low     Medium  High    Medium
  Alkaline High   Medium  Medium  High    High
  Acidic  Medium  Low     Medium  High    High
  Neutral High    Low     Medium  High    High
  Acidic   Low    Low     Medium  High    High
  Acidic   Low    Low     Medium  High    High
  Acidic  Medium  Medium  Medium  High    High
  </code></pre>
  
  <p>I want to give values of</p>
  
  <pre><code>Acidic = 0, Neutral = 1, Alkaline = 2
  Low = 0, Medium = 1, High = 2
  </code></pre>
  
  <p>How to write a code which is automatic convert Acidic=0 , Neutral=1 , Alkaline=2?</p>