擅长:python、mysql、java
<p>否则,您可以使用选项<code>header=2</code>告诉pandas使用第一行作为列名,
但是如果要跳过第二行的选项<code>skiprows =[3]</code>,
它发出以下命令:</p>
<pre><code>>>pd.read_csv(datafile, sep=';', comment='#', header=0, skiprows=[1])
Header1 Header2
0 0 123
1 1 231
2 2 512
</code></pre>