title: Convert datetime.datetime object to days since epoch in Python
body: <p>I've got a <code>pandas.Series</code> object that might look like this:</p>
  
  <pre><code>import pandas as pd
  myVar = pd.Series(["VLADIVOSTOK 690090", "MAHE", NaN, NaN, "VLADIVOSTOK 690090", "2000-07-01 00:00:00"])
  </code></pre>
  
  <p><code>myVar[5]</code> is parsed as a <code>datetime.datetime</code> object when the data is read into Python via <code>pandas</code>. I'm assuming that converting this value to the number of days since epoch (36708) isn't difficult at all. I'm just new to Python and don't know how to do it. Thanks in advance!</p>