BUG: resampling with NaT in TimedeltaIndex (#13223)
State: closed

 - [ ] closes #13223 
 - [ ] tests added / passed
 - [ ] passes ``git diff upstream/master | flake8 --diff``
 - [ ] whatsnew entry



Labels:
name: Bug
name: Timedelta
description: Timedelta data type
name: Resample
description: resample method

Comments:
## [Current coverage](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr) is 85.28% (diff: 100%)

> Merging [#14649](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr) into [master](https://codecov.io/gh/pandas-dev/pandas/branch/master?src=pr) will increase coverage by **<.01%**

``` diff
@@             master     #14649   diff @@
==========================================
  Files           140        140          
  Lines         50693      50698     +5   
  Methods           0          0          
  Messages          0          0          
  Branches          0          0          
==========================================
+ Hits          43234      43240     +6   
+ Misses         7459       7458     -1   
  Partials          0          0          
```

> Powered by [Codecov](https://codecov.io?src=pr). Last update [1d6dbb4...d112e73](https://codecov.io/gh/pandas-dev/pandas/compare/1d6dbb41b26a39121ec8c4f19f5da78bb0ab4af7...d112e735bd61fd4d79de10beb0208c79b6fc2a4d?src=pr)

# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=h1) Report
> Merging [#14649](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/c26e5bbed826aaf9a643c604f7f754f29af4bd64?src=pr&el=desc) will **increase** coverage by `4.64%`.
> The diff coverage is `96.22%`.

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

```diff
@@            Coverage Diff             @@
##           master   #14649      +/-   ##
==========================================
+ Coverage   86.33%   90.97%   +4.64%     
==========================================
  Files         139      145       +6     
  Lines       51149    49481    -1668     
==========================================
+ Hits        44157    45014     +857     
+ Misses       6992     4467    -2525
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.73% <96.02%> (?)` | |
| #single | `40.67% <41.8%> (?)` | |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/stats/moments.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL3N0YXRzL21vbWVudHMucHk=) | `71.19% <ø> (ø)` | :arrow_up: |
| [pandas/io/html.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2lvL2h0bWwucHk=) | `84.85% <ø> (+0.36%)` | :arrow_up: |
| [pandas/io/sas/sasreader.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2lvL3Nhcy9zYXNyZWFkZXIucHk=) | `85.18% <ø> (+77.77%)` | :arrow_up: |
| [pandas/core/config.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29uZmlnLnB5) | `88.09% <ø> (ø)` | :arrow_up: |
| [pandas/io/feather\_format.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2lvL2ZlYXRoZXJfZm9ybWF0LnB5) | `86.66% <ø> (ø)` | :arrow_up: |
| [pandas/sparse/list.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL3NwYXJzZS9saXN0LnB5) | `97.1% <ø> (ø)` | :arrow_up: |
| [pandas/indexes/numeric.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2luZGV4ZXMvbnVtZXJpYy5weQ==) | `97.1% <ø> (-0.05%)` | :arrow_down: |
| [pandas/parser.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL3BhcnNlci5weQ==) | `100% <ø> (ø)` | |
| [pandas/indexes/range.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2luZGV4ZXMvcmFuZ2UucHk=) | `92.11% <ø> (+0.02%)` | :arrow_up: |
| [pandas/compat/numpy/\_\_init\_\_.py](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree#diff-cGFuZGFzL2NvbXBhdC9udW1weS9fX2luaXRfXy5weQ==) | `93.93% <ø> (ø)` | :arrow_up: |
| ... and [156 more](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=tree-more) | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/14649?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/14649?src=pr&el=footer). Last update [c26e5bb...5372175](https://codecov.io/gh/pandas-dev/pandas/pull/14649?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
can you rebase.
Rebased
can you rebase / upate
rebased
when you rebase you should end up with a small number of commits.

try

```
git rebase -i yourbranchname origin/master
git push yourremote yourbranchname
```

closing. this needs a new PR with a cherry-pick on top of master.