function vs lambda statement
<p>Lambda is confusing me a little, here is what I've got :</p>

<pre><code>lmb = lambda d: datetime.datetime.strptime(d["Date[G]"]+"-"+d["Time[G]"], "%d-%b-%Y-%H:%M:%S.%f")
</code></pre>

<p>if I write a function like this :</p>

<pre><code>def time(d):
    t = datetime.datetime.strptime(d["Date[G]"]+"-"+d["Time[G]"], "%d-%b-%Y-%H:%M:%S.%f")
    return t.strftime("%d-%b-%Y-%H")
</code></pre>

<p>I can <code>return t.strftime("%d-%b-%Y-%H")</code>.</p>

<p>Can I embed a somethine like <code>t.strftime("%d-%b-%Y-%H")</code> in my lambda statement ?</p>

<p><strong>EDIT</strong> </p>

<p>I`ve tried this :</p>

<pre><code>lmb = lambda d: datetime.datetime.strptime(d["Date[G]"]+"-"+d["Time[G]"], "%d-%b-%Y-%H:%M:%S.%f").strftime("%d-%b-%Y-%H")
</code></pre>

<p>but it returns :</p>

<blockquote>
  <p>AttributeError: 'str' object has no attribute 'strftime'</p>
</blockquote>

<p>which doesn't happen using the function ..</p>
