title: Hash each row of pandas dataframe column using apply
body: <p>I'm trying to hash each value of a python 3.6 pandas dataframe column with the following algorithm on the dataframe-column ORIG:</p>
  
  <pre><code>HK_ORIG = base64.b64encode(hashlib.sha1(str(df.ORIG).encode("UTF-8")).digest())
  </code></pre>
  
  <p>However, the above mentioned code does not hash each value of the column, so, in order to hash each value of the df-column ORIG, I need to use the apply function. Unfortunatelly, I don't seem to be good enough to get this done.</p>
  
  <p>I imagine it to look like the following code:</p>
  
  <pre><code>df["HK_ORIG"] = str(df['ORIG']).encode("UTF-8")).apply(hashlib.sha1)
  </code></pre>
  
  <p>I'm looking very much forward to your answers!
  Many thanks in advance!</p>