Skip to content

WIP: Refactor accessors, unify usage, make "recipe" #17042

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

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b77e103
Move PandasDelegate and AccessorProperty; update imports
jbrockmendel Jul 19, 2017
dbc149d
Move apply _shared_docs to functions and attach to methods with copy
jbrockmendel Jul 20, 2017
3c77d94
Implement _make_accessor as classmethod on StringMethods
jbrockmendel Jul 20, 2017
19f7ff6
Add example/recipe
jbrockmendel Jul 20, 2017
d152421
Test to go along with example/recipe
jbrockmendel Jul 20, 2017
101e7e5
Transition to _make_accessor
jbrockmendel Jul 20, 2017
774a35d
Merge branch 'master' into accessory
jbrockmendel Jul 20, 2017
ccec595
Merge branch 'master' into accessory
jbrockmendel Jul 20, 2017
74e4539
Remove unused import that was causing a lint error
jbrockmendel Jul 20, 2017
953598a
merge pulled
jbrockmendel Jul 20, 2017
22d4892
Wrap long line
jbrockmendel Jul 22, 2017
014fae0
Refactor tests and documentation
jbrockmendel Jul 22, 2017
dd8315c
Typos, flake8 fixes, rearrange comments
jbrockmendel Jul 22, 2017
74a237b
Simplify categorical make_accessor args
jbrockmendel Jul 23, 2017
c931d4b
Rename PandasDelegate subclasses FooDelegate
jbrockmendel Jul 25, 2017
6c771b4
Revert import rearrangement; update names FooDelegate
jbrockmendel Jul 25, 2017
d3a4460
Deprecate StringAccessorMixin
jbrockmendel Jul 25, 2017
48f3b4d
Merge branch 'master' into accessory
jbrockmendel Jul 25, 2017
73a0633
lint fixes
jbrockmendel Jul 25, 2017
aa793ad
Merge branch 'accessory' of https://github.com/jbrockmendel/pandas in…
jbrockmendel Jul 25, 2017
264a7e7
Merge branch 'master' into accessory
jbrockmendel Sep 20, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
_asarray_tuplesafe)

from pandas.core.base import PandasObject, IndexOpsMixin

from pandas.core import base, accessors, missing, sorting, strings
from pandas.util._decorators import (Appender, Substitution,
cache_readonly, deprecate_kwarg)

from pandas.core.indexes.frozen import FrozenList
import pandas.core.common as com
import pandas.core.dtypes.concat as _concat
Expand Down
3 changes: 1 addition & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
maybe_upcast, infer_dtype_from_scalar,
maybe_convert_platform,
maybe_cast_to_datetime, maybe_castable)
from pandas.core.dtypes.missing import isnull, notnull, remove_na_arraylike
from pandas.core.dtypes.missing import isna, notna, remove_na_arraylike

from pandas.core import (generic, base, accessors, strings,
algorithms, ops, nanops)

import pandas.core.common as com
from pandas.core.common import (is_bool_indexer,
_default_index,
Expand Down