Pandas Date Range Monthly on Specific Day of Month
<p>In Pandas, I know you can use anchor offsets to specify more complicated reucrrences:
<a href="http://pandas.pydata.org/pandas-docs/stable/timeseries.html#anchored-offset" rel="nofollow">http://pandas.pydata.org/pandas-docs/stable/timeseries.html#anchored-offset</a></p>

<p>I want to specify a date_range such that it is monthly on the nth day of each month. What is the best syntax to do that with? I'm imaginging something similar to this which specifies a recurrence every 2 weeks on Friday:</p>

<pre><code>schedule = pd.date_range(start=START_STR, periods=26, freq="2W-FRI")
</code></pre>

<p>IIUC you can do it this way:</p>

<pre><code>In [18]: pd.DataFrame(pd.date_range('2016-01-01', periods=10, freq='MS') + pd.DateOffset(days=26), columns=['Date'])
Out[18]:
        Date
0 2016-01-27
1 2016-02-27
2 2016-03-27
3 2016-04-27
4 2016-05-27
5 2016-06-27
6 2016-07-27
7 2016-08-27
8 2016-09-27
9 2016-10-27
</code></pre>

python datetime pandas