DOC: Updated docstring DatetimeIndex.tz_localize
State: closed

Kindly review this docstring DatetimeIndex.tz_localize

Labels:
name: Docs
name: Datetime
description: Datetime data dtype
name: Timezones
description: Timezone data dtype

Comments:
Can you do a check of PEP8 with running `git diff upstream/master -u -- "*.py" | flake8 --diff`  (see https://python-sprints.github.io/pandas/guide/pandas_pr.html#push-your-changes-to-pandas for more explanation)
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20050?src=pr&el=h1) Report
> Merging [#20050](https://codecov.io/gh/pandas-dev/pandas/pull/20050?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/9273bf5e3df82ee9f37097c33033f37189e2e244?src=pr&el=desc) will **decrease** coverage by `0.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #20050      +/-   ##
==========================================
- Coverage   91.71%    91.7%   -0.02%     
==========================================
  Files         150      150              
  Lines       49112    49122      +10     
==========================================
  Hits        45045    45045              
- Misses       4067     4077      +10
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.08% <ø> (-0.02%)` | :arrow_down: |
| #single | `41.86% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20050?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/20050/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.65% <ø> (ø)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20050/diff?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb252ZXJ0ZXIucHk=) | `65.07% <0%> (-1.74%)` | :arrow_down: |
| [pandas/core/window.py](https://codecov.io/gh/pandas-dev/pandas/pull/20050/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvd2luZG93LnB5) | `96.31% <0%> (ø)` | :arrow_up: |
| [pandas/core/indexes/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/20050/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9iYXNlLnB5) | `96.66% <0%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20050/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `83.85% <0%> (+0.2%)` | :arrow_up: |
| [pandas/core/reshape/tile.py](https://codecov.io/gh/pandas-dev/pandas/pull/20050/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvcmVzaGFwZS90aWxlLnB5) | `93.37% <0%> (+0.42%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20050?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/20050?src=pr&el=footer). Last update [9273bf5...95fcee2](https://codecov.io/gh/pandas-dev/pandas/pull/20050?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).

Hello @HimanshuAwasthi95! Thanks for updating the PR.



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

##### Comment last updated on March 14, 2018 at 08:54 Hours UTC
@HimanshuAwasthi95 You are still mixing tabs and spaces. Please try to fix that first.
Locally showing perfect I use vim for editing but don't know when I push code it shows wrong indentation is any tool which help me to remove this issue
I am not familiar with vim myself, but you will somehow have to say to vim that tabs should not be introduces as tabs but as 4 spaces (it may 'look' good, but that doesn't mean it is not mixing tabs and spaces). See eg https://stackoverflow.com/questions/1878974/redefine-tab-as-4-spaces
Or also see the second answer in https://stackoverflow.com/questions/426963/replace-tab-with-spaces-in-vim
I am afraid it is not yet solved. 
You can check the output of `git diff upstream/master -u -- "*.py" | flake8 --diff `, it will still contain errors related to tabs/spaces. See also https://github.com/pandas-dev/pandas/pull/20050#issuecomment-371473606
Tabs/spaces issues seems to be solved!
@jreback i changes example as required
@datapythonista @jorisvandenbossche @jreback Review 
The example looks much better now. Just added couple of minor comments.

Sorry if I made you feel you were disappointing anyone. You're doing a great job, discussions in reviews are a normal and very beneficial part of open source. As you get more experience probably the discussions will be a bit shorter. But we've all been there (and we often are), in these PRs that require several iterations to look great. :)
lgtm
Thats why I love community thanks for supporting and guiding 
Thanks alot :)
@HimanshuAwasthi95 Thanks for the PR!
thank @jorisvandenbossche @datapythonista @jreback