python add array of hours to datetime
<p>import timedelta as td
I have a date time and I want to add an array of hours to it. </p>

<p>i.e. </p>

<pre><code>Date[0]
datetime.datetime(2011, 1, 1, 0, 0)

Date[0] + td(hours=9)
datetime.datetime(2011, 1, 1, 9, 0)

hrs = [1,2,3,4]
Date[0] + td(hours=hrs)
</code></pre>

<p>But obviously it is not supported.</p>

<p>Date array above is a giant array of size 100X1 and I want to add hrs = [1,2,3,4] to each row of Date to get a datetime array of size 100x4. So, a for loop is not going to work in my case.</p>