'Timestamp' object has no attribute 'timestamp'
<p>I'm following a course where I have to convert a date to a unix timestamp.</p>

<pre><code>import pandas as pd

df = pd.read_csv('file.csv')
print type(df.iloc[-1].name)
</code></pre>

<p><strong>class 'pandas.tslib.Timestamp'</strong></p>

<pre><code>ts = df.iloc[-1].name.timestamp()
</code></pre>

<p><strong>AttributeError: 'Timestamp' object has no attribute 'timestamp'</strong></p>