BrandonFors/pandas-github-issues huggingface dataset:
ENH: fill_value argument for shift #15486
State: closed

This is a work in progress. 

Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):

- [X] closes #15486 
- [ ] tests added / passed
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:

Comments:
Hello @samuelsinayoko! Thanks for updating the PR.













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

##### Comment last updated on April 29, 2018 at 10:46 Hours UTC
what issue is this for? can you fix the title
This is work in progress. Current implementation doesn't work for categorical data, hoping to fix that soon. 
Hi Samuel Sinayoko (@samuelsinayoko),
We are researchers working on identifying redundant development and duplicated pull requests. We have found there is a pull request: https://github.com/pandas-dev/pandas/pull/15527 which might be a potentially duplicate to this one. We would like to build the link between developers to reduce redundant development. We would really appreciate if you could help us to validate and give us feedback.
Thank you very much for your time!

closing as stale, if you want to continue working, pls ping and we can re-open. you will need to merge master.
DOC: update the isna, isnull, notna and notnull docstring
State: closed

Checklist for the pandas documentation sprint (ignore this if you are doing
an unrelated PR):

- [X] PR title is "DOC: update the <your-function-or-method> docstring"
- [ ] The validation script passes: `scripts/validate_docstrings.py <your-function-or-method>`
- [X] The PEP8 style check passes: `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [X] The html version looks good: `python doc/make.py --single <your-function-or-method>`
- [X] It has been proofread on language by another sprint participant

Please include the output of the validation script below between the "```" ticks:

```
The validation script did not work on this docstring

```

If the validation script still gives errors, but you think there is a good reason
to deviate in this case (and there are certainly such cases), please state this
explicitly.

The validation script did not work on this docstring

Labels:
name: Docs
name: Missing-data
description: np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

Comments:
In the Parameters section, can you change `arr` to `obj` to match the function signature?
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20459?src=pr&el=h1) Report
> Merging [#20459](https://codecov.io/gh/pandas-dev/pandas/pull/20459?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/402ad45da3f1c44da6594a773e5ba567ee1966a5?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/20459/graphs/tree.svg?width=650&height=150&src=pr&token=eZ4WkYLtcO)](https://codecov.io/gh/pandas-dev/pandas/pull/20459?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #20459   +/-   ##
=======================================
  Coverage   91.85%   91.85%           
=======================================
  Files         152      152           
  Lines       49235    49235           
=======================================
  Hits        45224    45224           
  Misses       4011     4011
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20459?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/dtypes/missing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20459/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZHR5cGVzL21pc3NpbmcucHk=) | `91.07% <ø> (ø)` | :arrow_up: |

------

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

Thanks @Cheukting !
CLN: Removed dead GroupBy code
State: closed


- [X] closes #20456
- [X] tests added / passed
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry


Labels:
name: Groupby
name: Clean

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20457?src=pr&el=h1) Report
> Merging [#20457](https://codecov.io/gh/pandas-dev/pandas/pull/20457?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/02477dab1e4dfb26597806899f8ebf2ca019c30a?src=pr&el=desc) will **increase** coverage by `0.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #20457      +/-   ##
==========================================
+ Coverage    91.8%   91.82%   +0.01%     
==========================================
  Files         152      152              
  Lines       49223    49206      -17     
==========================================
- Hits        45191    45182       -9     
+ Misses       4032     4024       -8
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.2% <ø> (+0.01%)` | :arrow_up: |
| #single | `41.84% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20457?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/groupby.py](https://codecov.io/gh/pandas-dev/pandas/pull/20457/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZ3JvdXBieS5weQ==) | `92.55% <ø> (+0.41%)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20457/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `83.91% <0%> (-0.21%)` | :arrow_down: |

------

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

thanks!
API: Preserve int columns in to_dict('index')
State: closed

- [x] closes #18580
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry


Labels:
name: Dtype Conversions
description: Unexpected or buggy dtype conversions
name: API Design

Comments:
Hello @reidy-p! Thanks for updating the PR.





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

##### Comment last updated on March 22, 2018 at 19:31 Hours UTC
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20444?src=pr&el=h1) Report
> Merging [#20444](https://codecov.io/gh/pandas-dev/pandas/pull/20444?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/02477dab1e4dfb26597806899f8ebf2ca019c30a?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `100%`.

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

```diff
@@           Coverage Diff           @@
##           master   #20444   +/-   ##
=======================================
  Coverage    91.8%    91.8%           
=======================================
  Files         152      152           
  Lines       49223    49223           
=======================================
  Hits        45191    45191           
  Misses       4032     4032
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.19% <100%> (ø)` | :arrow_up: |
| #single | `41.84% <0%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20444?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/frame.py](https://codecov.io/gh/pandas-dev/pandas/pull/20444/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZnJhbWUucHk=) | `97.18% <100%> (ø)` | :arrow_up: |

------

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

lgtm. just want to make sure windows passes. ping on green.
@jreback it's green now. Thanks!
thanks @reidy-p keep em coming!
parameterize tests in scalar/timedelta
State: closed

- [x] closes https://github.com/pandas-dev/pandas/issues/20426
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`


Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: Timedelta
description: Timedelta data type

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20428?src=pr&el=h1) Report
> Merging [#20428](https://codecov.io/gh/pandas-dev/pandas/pull/20428?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/01882ba5b4c21b0caf2e6b9279fb01967aa5d650?src=pr&el=desc) will **decrease** coverage by `0.02%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #20428      +/-   ##
==========================================
- Coverage    91.8%   91.77%   -0.03%     
==========================================
  Files         152      152              
  Lines       49215    49215              
==========================================
- Hits        45181    45169      -12     
- Misses       4034     4046      +12
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.16% <ø> (-0.03%)` | :arrow_down: |
| #single | `41.84% <ø> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20428?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/20428/diff?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb252ZXJ0ZXIucHk=) | `65.07% <0%> (-1.74%)` | :arrow_down: |

------

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

thans @minggli 

happyily will take any parameterization tests! would take even w/o an issue
BUG: ExtensionArray.fillna for scalar values
State: closed

Closes #20411

Labels:
name: Missing-data
description: np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate
name: ExtensionArray
description: Extending pandas with custom dtypes or arrays.

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20412?src=pr&el=h1) Report
> Merging [#20412](https://codecov.io/gh/pandas-dev/pandas/pull/20412?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/7273ea0709590e6264607f227bb8def0ef656c50?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `100%`.

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

```diff
@@            Coverage Diff             @@
##           master   #20412      +/-   ##
==========================================
+ Coverage   91.77%   91.77%   +<.01%     
==========================================
  Files         152      152              
  Lines       49205    49215      +10     
==========================================
+ Hits        45159    45169      +10     
  Misses       4046     4046
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.16% <100%> (ø)` | :arrow_up: |
| #single | `41.85% <16.66%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20412?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/arrays/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/20412/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYXJyYXlzL2Jhc2UucHk=) | `80.64% <100%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20412/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.11% <100%> (+0.16%)` | :arrow_up: |

------

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

thanks @TomAugspurger 

may want to think about someway of augmenting our is_scalar check that works on EA's.
> may want to think about someway of augmenting our is_scalar check that works on EA's

I am not sure that will be possible (or desirable), because in principle such scalars can be anything, including lists and dicts
Bug: Allow np.timedelta64 objects to index TimedeltaIndex
State: closed

- [x] closes #20393
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry

`is_integer(label)` would catch `np.timedelta64` objects due to https://github.com/numpy/numpy/issues/10685 (I believe), so ensure that the label is also not a timedelta64 dtype

Labels:
name: Bug
name: Indexing
description: Related to indexing on series/frames, not to indexes themselves
name: Timedelta
description: Timedelta data type

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20408?src=pr&el=h1) Report
> Merging [#20408](https://codecov.io/gh/pandas-dev/pandas/pull/20408?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/7d5e65343060eb21d81422cc1106b4d90305d8df?src=pr&el=desc) will **not change** coverage.
> The diff coverage is `100%`.

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

```diff
@@           Coverage Diff           @@
##           master   #20408   +/-   ##
=======================================
  Coverage    91.8%    91.8%           
=======================================
  Files         152      152           
  Lines       49205    49205           
=======================================
  Hits        45171    45171           
  Misses       4034     4034
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.18% <100%> (ø)` | :arrow_up: |
| #single | `41.85% <0%> (ø)` | :arrow_up: |

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

------

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

thanks @mroeschke 
thanks!
DOC: Only use ~ in class links to hide prefixes.
State: closed

This is ported from https://github.com/python-sprints/python-sprints.github.io/pull/78/, as suggested in a comment.


Labels:
name: Docs

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/20402?src=pr&el=h1) Report
> Merging [#20402](https://codecov.io/gh/pandas-dev/pandas/pull/20402?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/aaa4d9092ae83b4c8d92a8910d165237f989b0ca?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/20402/graphs/tree.svg?width=650&height=150&src=pr&token=eZ4WkYLtcO)](https://codecov.io/gh/pandas-dev/pandas/pull/20402?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #20402   +/-   ##
=======================================
  Coverage    91.8%    91.8%           
=======================================
  Files         152      152           
  Lines       49205    49205           
=======================================
  Hits        45171    45171           
  Misses       4034     4034
```

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


------

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

lgtm. @jorisvandenbossche 
@dukebody Thanks!
Fix Series construction with dtype=str
State: closed

TST: Added test for construction Series with dtype=str 
BUG: Handles case where data is scalar 
DOC: added changes to whatsnew/v0.23.0.txt

Checklist for other PRs (remove this part if you are doing a PR for the pandas documentation sprint):

- [x] closes #19853
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [x] whatsnew entry


Labels:
name: Bug
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode
name: Dtype Conversions
description: Unexpected or buggy dtype conversions

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

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

```diff
@@            Coverage Diff             @@
##           master   #20401      +/-   ##
==========================================
+ Coverage   91.77%   91.77%   +<.01%     
==========================================
  Files         152      152              
  Lines       49203    49214      +11     
==========================================
+ Hits        45155    45168      +13     
+ Misses       4048     4046       -2
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `90.16% <100%> (ø)` | :arrow_up: |
| #single | `41.84% <100%> (-0.01%)` | :arrow_down: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/20401?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/series.py](https://codecov.io/gh/pandas-dev/pandas/pull/20401/diff?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvc2VyaWVzLnB5) | `93.85% <100%> (ø)` | :arrow_up: |
| [pandas/util/testing.py](https://codecov.io/gh/pandas-dev/pandas/pull/20401/diff?src=pr&el=tree#diff-cGFuZGFzL3V0aWwvdGVzdGluZy5weQ==) | `84.11% <0%> (+0.37%)` | :arrow_up: |

------

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

@jreback any more comments here?
thanks @nikoskaragiannakis