擅长:python、mysql、java
<p>我认为<code>DatetimeIndex</code>是pandas.DataFrame上的索引类型。每个<code>DataFrame</code>都带有属性<code>index</code>,并且<code>index</code>可以是从<code>DateTimeIndex</code>到<code>PeriodIndex</code>和<code>TimedeltaIndex</code>(<a href="https://queirozf.com/entries/pandas-time-series-examples-datetimeindex-periodindex-and-timedeltaindex" rel="nofollow noreferrer">guide here</a>)的不同类型</p>
<p>因此,在您的输出中,<code>Date</code>是您的索引。如果这不是您期望的输出,您可能需要重新考虑使用熊猫数据帧</p>