BrandonFors/pandas-github-issues huggingface dataset:
[Issue: #16483] Adding GroupBy Filter to API docs.
State: closed

 - [ ] closes #16483
 - [ ] tests added / passed
 - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [ ] whatsnew entry


Labels:
name: Docs

Comments:
When the doc build finishes https://travis-ci.org/pandas-dev/pandas/jobs/235778446 can you search through the log for "filter" and see if there are any sphinx warnings?
@TomAugspurger doesn't look like there are any sphinx warnings!
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16484?src=pr&el=h1) Report
> Merging [#16484](https://codecov.io/gh/pandas-dev/pandas/pull/16484?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/97ad3fb9c87226ad983267e2891dbbf68432b8ea?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/16484/graphs/tree.svg?token=eZ4WkYLtcO&width=650&height=150&src=pr)](https://codecov.io/gh/pandas-dev/pandas/pull/16484?src=pr&el=tree)

```diff
@@           Coverage Diff           @@
##           master   #16484   +/-   ##
=======================================
  Coverage    90.4%    90.4%           
=======================================
  Files         161      161           
  Lines       51033    51033           
=======================================
  Hits        46136    46136           
  Misses       4897     4897
```

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


------

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

thanks!
ENH: add nthreads option to feather-format IO
State: closed

closes #16359

Labels:
name: Enhancement
name: IO Data
description: IO issues that don't fit into a more specific label

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

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

```diff
@@            Coverage Diff             @@
##           master   #16476      +/-   ##
==========================================
+ Coverage   90.42%   90.42%   +<.01%     
==========================================
  Files         161      161              
  Lines       51029    51031       +2     
==========================================
+ Hits        46143    46145       +2     
  Misses       4886     4886
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.26% <75%> (ø)` | :arrow_up: |
| #single | `40.17% <75%> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16476?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/io/feather\_format.py](https://codecov.io/gh/pandas-dev/pandas/pull/16476?src=pr&el=tree#diff-cGFuZGFzL2lvL2ZlYXRoZXJfZm9ybWF0LnB5) | `85.71% <75%> (-2.17%)` | :arrow_down: |
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/16476?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.33% <0%> (+0.09%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16476?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/16476?src=pr&el=footer). Last update [692a5b9...61583fc](https://codecov.io/gh/pandas-dev/pandas/pull/16476?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
COMPAT: feather-format 0.4.0 compat
State: closed


Labels:
name: Testing
description: pandas testing functions or related to the test suite
name: IO Data
description: IO issues that don't fit into a more specific label

Comments:
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16475?src=pr&el=h1) Report
> :exclamation: No coverage uploaded for pull request base (`master@044feb5`). [Click here to learn what that means](https://docs.codecov.io/docs/error-reference#section-missing-base-commit).
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff            @@
##             master   #16475   +/-   ##
=========================================
  Coverage          ?   90.42%           
=========================================
  Files             ?      161           
  Lines             ?    51029           
  Branches          ?        0           
=========================================
  Hits              ?    46144           
  Misses            ?     4885           
  Partials          ?        0
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.26% <ø> (?)` | |
| #single | `40.17% <ø> (?)` | |


------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16475?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/16475?src=pr&el=footer). Last update [044feb5...f3d3098](https://codecov.io/gh/pandas-dev/pandas/pull/16475?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
TST: Fix test assertions
State: closed

 - [ ] closes #xxxx
 - [ ] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [ ] whatsnew entry

This fixes some test assertions that were only checking the truthiness of a value when they should have been comparing two values. Initially, through typos, tests were written using assertTrue when they should have been using assertEqual. The second argument to assertTrue was being treated as a message instead of as the expected value. More recently, these assertions with typos were transformed to use `assert`, with the same problems persisting.

I have fixed each of the problems I found on a case-by-case basis. Some lines required more complicated fixes, like adding instanceof() or fixing an expected value. I believe I have found all such instances of this error, because I reviewed all the locations where assertTrue was called with two arguments.

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

Comments:
thanks!
BUG: Allow non-callable attributes in aggregate function. Fixes GH16405
State: closed

 - [x] closes #16405
 - [x] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [x] whatsnew entry


Labels:
name: Bug
name: Reshaping
description: Concat, Merge/Join, Stack/Unstack, Explode

Comments:
Can you add the test from the original issue here? It can go in `pandas/tests/frame/test_apply.py`

Also could use a release note in `doc/source/whatsnew/v0.20.2.txt`, under the bugfix section.
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16458?src=pr&el=h1) Report
> Merging [#16458](https://codecov.io/gh/pandas-dev/pandas/pull/16458?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/e81f3cc30725443a1d36ec27279f3fec4eed60ec?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/16458/graphs/tree.svg?width=650&height=150&src=pr&token=eZ4WkYLtcO)](https://codecov.io/gh/pandas-dev/pandas/pull/16458?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master   #16458      +/-   ##
==========================================
+ Coverage   90.43%   90.43%   +<.01%     
==========================================
  Files         161      161              
  Lines       51045    51049       +4     
==========================================
+ Hits        46161    46165       +4     
  Misses       4884     4884
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16458?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/base.py](https://codecov.io/gh/pandas-dev/pandas/pull/16458?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvYmFzZS5weQ==) | `96.21% <100%> (+0.03%)` | :arrow_up: |

------

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

I may have gone a bit overboard with the tests... although somehow I made coverage worse overall?
@jreback are you OK with this? I believe the discussion was whether we could have a simpler implementation by special-casing `'size'`?
can't change size as it's already defined as a property (for numpy compat)


thanks!
DOC: update make.py script
State: closed

@TomAugspurger I updated the docs yesterday with this.

Not sure if it is needed to keep the possibility to pass a user (if you specify this in `.ssh/config` you don't need this, but the current code allows you to not have the user specified there) 
But I could also simplify and just remove the whole user thing.

(depending on that will also update the other one, upload_stable_pdf)

Labels:
name: Build
description: Library building on various platforms
name: Docs

Comments:
Thanks.

I should probably just make a `pandas` user on the server that we all have the ability to ssh into.
> I should probably just make a pandas user on the server that we all have the ability to ssh into.

Not sure if it is that useful? Because you would still need to add a key for everybody wanting to access it no? (and I suppose adding a new user is also not that much of work?)

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

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

```diff
@@            Coverage Diff             @@
##           master   #16456      +/-   ##
==========================================
- Coverage   90.42%   90.42%   -0.01%     
==========================================
  Files         161      161              
  Lines       51023    51023              
==========================================
- Hits        46138    46137       -1     
- Misses       4885     4886       +1
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.26% <ø> (-0.01%)` | :arrow_down: |
| #single | `40.17% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16456?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/common.py](https://codecov.io/gh/pandas-dev/pandas/pull/16456?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29tbW9uLnB5) | `91.05% <0%> (-0.34%)` | :arrow_down: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16456?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/16456?src=pr&el=footer). Last update [6614e26...6adc736](https://codecov.io/gh/pandas-dev/pandas/pull/16456?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
Option Page Typos
State: closed

#### Problem description
There are typos on this page and one confusing sentence. Trying to learn the workflow. 



Labels:
name: Docs

Comments:
@andymaheshw thanks! keep em coming!
# [Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16421?src=pr&el=h1) Report
> Merging [#16421](https://codecov.io/gh/pandas-dev/pandas/pull/16421?src=pr&el=desc) into [master](https://codecov.io/gh/pandas-dev/pandas/commit/d5a681bfa2de24b4a1449956c84393a413909738?src=pr&el=desc) will **increase** coverage by `<.01%`.
> The diff coverage is `n/a`.

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

```diff
@@            Coverage Diff             @@
##           master   #16421      +/-   ##
==========================================
+ Coverage   90.42%   90.42%   +<.01%     
==========================================
  Files         161      161              
  Lines       51023    51023              
==========================================
+ Hits        46137    46138       +1     
+ Misses       4886     4885       -1
```

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

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16421?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/common.py](https://codecov.io/gh/pandas-dev/pandas/pull/16421?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvY29tbW9uLnB5) | `91.39% <0%> (+0.33%)` | :arrow_up: |

------

[Continue to review full report at Codecov](https://codecov.io/gh/pandas-dev/pandas/pull/16421?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/16421?src=pr&el=footer). Last update [d5a681b...0c59a99](https://codecov.io/gh/pandas-dev/pandas/pull/16421?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).
DOC: add google analytics to the documentation
State: closed

The main pandas website (pandas.pydata.org) has google analytics tracking, but I think it would be interesting to also have this on the docs, so adding it to the theme.



Labels:
name: Docs

Comments:
👍  Who has access to the GA page? Might be good to document that in the wiki.
Wes has access, and now gave me access as well on my request. 

BTW, based on the data there, there were apparently about 180 people who clicked on the not-working "pandas-docs/version/0.20.0/" links in the github release message .. :-) 
What is also apparent is that a lot of people still trying to access the docstring page of `pandas.rolling_mean`, which we didn't keep on the website when they were deprecated (probably a bit late now to still add them).
Update tutorials.rst
State: closed

 - [x] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``


Labels:
name: Docs

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

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

```diff
@@            Coverage Diff             @@
##           master   #16411      +/-   ##
==========================================
+ Coverage   90.38%   90.41%   +0.02%     
==========================================
  Files         161      161              
  Lines       50999    50999              
==========================================
+ Hits        46096    46109      +13     
+ Misses       4903     4890      -13
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.24% <ø> (+0.02%)` | :arrow_up: |
| #single | `40.19% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16411?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/indexes/datetimes.py](https://codecov.io/gh/pandas-dev/pandas/pull/16411?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvaW5kZXhlcy9kYXRldGltZXMucHk=) | `95.33% <0%> (+0.09%)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/16411?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb252ZXJ0ZXIucHk=) | `65.05% <0%> (+1.81%)` | :arrow_up: |

------

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

Thanks! Seems like a nice tutorial
Any idea how long does it take for the changes to get reflected on the site? I don't see it at http://pandas.pydata.org/pandas-docs/stable/tutorials.html
when the release happens
a few weeks until 0.20.2
DOC: Added examples for union_categoricals
State: closed

 - [x] closes #16390 
 - [ ] tests added / passed
 - [x] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [ ] whatsnew entry

Copied and posted over examples into the doc string; added link.

Labels:
name: Docs
name: Categorical
description: Categorical Data Type

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

```diff
@@            Coverage Diff             @@
##           master   #16397      +/-   ##
==========================================
- Coverage   90.41%   90.38%   -0.03%     
==========================================
  Files         161      161              
  Lines       50997    50999       +2     
==========================================
- Hits        46107    46097      -10     
- Misses       4890     4902      +12
```

| Flag | Coverage Δ | |
|---|---|---|
| #multiple | `88.22% <ø> (-0.03%)` | :arrow_down: |
| #single | `40.19% <ø> (ø)` | :arrow_up: |

| [Impacted Files](https://codecov.io/gh/pandas-dev/pandas/pull/16397?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [pandas/core/dtypes/concat.py](https://codecov.io/gh/pandas-dev/pandas/pull/16397?src=pr&el=tree#diff-cGFuZGFzL2NvcmUvZHR5cGVzL2NvbmNhdC5weQ==) | `98.07% <ø> (ø)` | :arrow_up: |
| [pandas/plotting/\_converter.py](https://codecov.io/gh/pandas-dev/pandas/pull/16397?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb252ZXJ0ZXIucHk=) | `63.23% <0%> (-1.82%)` | :arrow_down: |
| [pandas/plotting/\_core.py](https://codecov.io/gh/pandas-dev/pandas/pull/16397?src=pr&el=tree#diff-cGFuZGFzL3Bsb3R0aW5nL19jb3JlLnB5) | `81.89% <0%> (+0.02%)` | :arrow_up: |

------

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

@GuessWhoSamFoo Thanks!
BUG: array raveled but not reshaped in all cases
State: closed

 - [x] closes #16362
 - [ ] tests added / passed
 - [ ] passes ``git diff upstream/master --name-only -- '*.py' | flake8 --diff``
 - [ ] whatsnew entry


Labels:

Comments:
Sorry about that, not appropriately tested.
@RobinFiveWords you can reopen and push tests when you are ready
@jreback Thanks, more that my code was bad the first time, didn't understand the full scope of how the function was used. When I update my branch, can I reopen this PR with that new code?

I haven't figured out an elegant way to have `maybe_infer_to_datetimelike` do exactly what its docstring says, specifically returning the input unchanged. Not sure how important that is, though. I imagine the `lib.infer*` functions (not sure where in _libs/src to look for them) require a 1-dimensional np.array, and if our input was of higher dimension, we need to reshape exactly once and only after we're done trying to convert. The simplest change, as I see it, is to allow a just-reshaped np.array to be returned in all cases. core/frame.py and core/categorical.py are each going to coerce to np.array in the very next step anyway.

If something readily comes to mind that I'm missing, please let me know!