擅长:python、mysql、java
<p>错误意味着您的代码选择<code>DataFrame</code>,因此<code>pd.to_datetime</code>正在寻找{a1}:</p>
<pre><code>print (pd.to_datetime(dataf))
</code></pre>
<blockquote>
<p>ValueError: to assemble mappings requires at least that [year, month, day] be specified: [day,month,year] is missing</p>
</blockquote>
<hr/>
<p>解决方案是使用参数<code>dayfirst=True</code>选择列<code>date</code>,如果第一个数字是<a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.to_datetime.html" rel="nofollow noreferrer">^{<cd8>}</a>中的天:</p>
^{pr2}$
<p><strong>设置</strong>:</p>
^{3}$