#21128 DOC: Add documentation for freq='infer' option of DatetimeIndex and TimedeltaIndex constructors
- [X] closes #21128
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry

Hi @jschendel , I made the changes you suggested and committed it. when I try to create pull request I am getting this message `` Able to merge. These branches can be automatically merged.`` . Please tell me if I can leave it or Do I need to do something else to merge the changes? # [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=h1) Report
> Merging [#21201](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/1c2844aca8e3dad7373576d5de40ee6810f7e5ad?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `n/a`.

[![Impacted file tree graph](https://codecov.io/gh/pandas-dev/pandas/pull/21201/graphs/tree.svg?token=eZ4WkYLtcO&src=pr&height=150&width=650)](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #21201   +/-   ##
=======================================
  Coverage   91.84%   91.84%           
=======================================
  Files         153      153           
  Lines       49505    49505           
=======================================
  Hits        45466    45466           
  Misses       4039     4039
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.23% <ø> (ø)` | :arrow_up: |
| #single | `41.88% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/timedeltas.py](https://codecov.io/gh/pandas-dev/pandas/pull/21201/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy90aW1lZGVsdGFzLnB5) | `91.24% <ø> (ø)` | :arrow_up: |
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/21201/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.78% <ø> (ø)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=footer). Last update [1c2844a...e1a80eb](https://codecov.io/gh/pandas-dev/pandas/pull/21201?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
 lgtm.

should have a comment about actually setting the ``freq`` attribute as well?

e.g.

``dti.freq = 'D'`` or whatever > should have a comment about actually setting the freq attribute as well?

Yes, but I'll create a separate issue for that with some more specific details.  Would be nice to update the `freq` docstring in addition to `timeseries.rst` and `timedeltas.rst`. @kirakrishnan if you can update @jschendel if you wouldn't mind updating, this looks ok otherwise. (pls merge on green as well). @jreback : it doesn't look like I have push access to update this (unless I'm missing something?), so will close and reboot as a new PR in a little bit. Closing in favor of #21566