Date range issue in pandas python
<p>I tried this: </p>

<pre><code>pd.date_range(2000, periods = 365, freq = 'D',format = '%d-%m-%Y')
</code></pre>

<p>why I am getting this result:</p>

<pre><code>DatetimeIndex(['1970-01-01 00:00:00.000002', '1970-01-02 00:00:00.000002',
               '1970-01-03 00:00:00.000002', '1970-01-04 00:00:00.000002',
               '1970-01-05 00:00:00.000002', '1970-01-06 00:00:00.000002',
               '1970-01-07 00:00:00.000002', '1970-01-08 00:00:00.000002',
</code></pre>

<p>Any help?</p>

<p>Try this</p>

<pre><code>pd.date_range('1/1/2000', periods = 365, freq = 'D',format = '%d-%m-%Y')
</code></pre>

python date pandas date-range datetimeindex