fixes #22085 (int type pandas.series.index contains float type key bug)
- [x] closes #22085 
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry
checks for type using is_float, is_integer_dtype and if key is a float that does not resolve to an equivalent int and Index is int, returns false. 
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/22366?src=pr&el=h1) Report
> Merging [#22366](https://codecov.io/gh/pandas-dev/pandas/pull/22366?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/2a2d1cfb00d69e92192eeca8e11488f782f25337?src=pr&el=desc) will **decrease** coverage by `<.01%`.
> The diff coverage is `66.66%`.

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

```diff
@@            Coverage Diff             @@
##           master   #22366      +/-   ##
==========================================
- Coverage   92.05%   92.05%   -0.01%     
==========================================
  Files         169      169              
  Lines       50709    50712       +3     
==========================================
+ Hits        46679    46681       +2     
- Misses       4030     4031       +1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.45% <66.66%> (-0.01%)` | :arrow_down: |
| #single | `42.25% <33.33%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/22366?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/22366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9iYXNlLnB5) | `96.38% <66.66%> (-0.05%)` | :arrow_down: |
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/22366/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.24% <0%> (ø)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/22366?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/22366?src=pr&el=footer). Last update [2a2d1cf...ae5796b](https://codecov.io/gh/pandas-dev/pandas/pull/22366?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
 note that this duplicates #22360  Hello @a1shadows! Thanks for updating the PR.



Cheers ! There are no PEP8 issues in this Pull Request. :beers: 

##### Comment last updated on August 16, 2018 at 11:59 Hours UTC duplicate PR