Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessor registry #20780

Merged
merged 2 commits into from
Apr 23, 2018
Merged

Conversation

TomAugspurger
Copy link
Contributor

Closes #19963

cc @datapythonista I think this would have solved your issues w/ the validation script.

Re-using the _accessors attribute, since nothing seemed to rely on it
being a frozenset.

Closes pandas-dev#19963
@TomAugspurger TomAugspurger added this to the 0.23.0 milestone Apr 21, 2018
@TomAugspurger
Copy link
Contributor Author

Do we want to document this as the official way to get a list of the registered accessors for an object?

@jreback jreback added the Compat pandas objects compatability with Numpy or Python functions label Apr 21, 2018
@codecov
Copy link

codecov bot commented Apr 22, 2018

Codecov Report

Merging #20780 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #20780      +/-   ##
==========================================
+ Coverage   91.84%   91.84%   +<.01%     
==========================================
  Files         153      153              
  Lines       49305    49307       +2     
==========================================
+ Hits        45284    45286       +2     
  Misses       4021     4021
Flag Coverage Δ
#multiple 90.23% <100%> (ø) ⬆️
#single 41.89% <75%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/indexes/base.py 96.68% <100%> (ø) ⬆️
pandas/core/accessor.py 98.71% <100%> (+0.01%) ⬆️
pandas/core/series.py 93.9% <100%> (ø) ⬆️
pandas/core/frame.py 97.17% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0d199e4...641f509. Read the comment docs.

@jreback
Copy link
Contributor

jreback commented Apr 22, 2018

lgtm. ok to update docs / merge.

@jorisvandenbossche
Copy link
Member

Do we want to document this as the official way to get a list of the registered accessors for an object?

Do you want to use this in eg Dask?
If so, then maybe we should document that.

@TomAugspurger
Copy link
Contributor Author

TomAugspurger commented Apr 23, 2018 via email

@TomAugspurger TomAugspurger merged commit ada3fa4 into pandas-dev:master Apr 23, 2018
@TomAugspurger TomAugspurger deleted the accessor-registry branch April 23, 2018 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compat pandas objects compatability with Numpy or Python functions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants