Read the last N lines of a CSV file in Python with numpy / pandas
<p>Is there a quick way to read the last N lines of a CSV file in Python, using <code>numpy</code> or <code>pandas</code>?</p>

<ol>
<li><p>I cannot do <code>skip_header</code> in <code>numpy</code> or <code>skiprow</code> in <code>pandas</code> because the length of the file varies, and I would always need the last N rows.</p></li>
<li><p>I know I can use pure Python to read line by line from the last row of the file, but that would be very slow. I can do that if I have to, but a more efficient way with <code>numpy</code> or <code>pandas</code> (which is essentially using C) would be really appreciated.</p></li>
</ol>