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

API: deprecate combineAdd and combineMult methods? #10735

Closed
jorisvandenbossche opened this issue Aug 3, 2015 · 4 comments
Closed

API: deprecate combineAdd and combineMult methods? #10735

jorisvandenbossche opened this issue Aug 3, 2015 · 4 comments
Labels
API Design Deprecate Functionality to remove in pandas
Milestone

Comments

@jorisvandenbossche
Copy link
Member

On a DataFrame, we have the combineAdd and combineMult methods:

  • they are a redundant, as they are defined as self.add(other, fill_value=0.) and self.mul(other, fill_value=1.) (that is the actual implementation), which is also just cleaner to use IMHO.
  • they have awkward (and non-pep8) names
  • I assume they are not used a lot (I found 3 relevant references on StackOverflow for combineAdd (SO1, SO2 and SO2, which is more than I expected), and none for combineMult

Therefore, I was thinking we could maybe deprecate these (as kind of clean-up)?

@jorisvandenbossche jorisvandenbossche added API Design Deprecate Functionality to remove in pandas labels Aug 3, 2015
@jorisvandenbossche jorisvandenbossche added this to the Someday milestone Aug 3, 2015
@jreback
Copy link
Contributor

jreback commented Aug 3, 2015

yeh they have a 'deprecated stuff' comment, but were not actually deprecated, sigh :( so let's deprecate and remove in next version.

@jreback jreback modified the milestones: 0.17.0, Someday Aug 3, 2015
@jorisvandenbossche
Copy link
Member Author

yeh they have a 'deprecated stuff' comment,

Ah, yes, you mean in the codebase (as in the docstring nothing is said about that ..)

Will do a PR in a few days if no one complains

@TomAugspurger
Copy link
Contributor

+1 for deprecation.

@jreback
Copy link
Contributor

jreback commented Aug 4, 2015

yes I think these are pretty old methods, and superfluous with .add,.mult. Let's just actually deprecate them.

gfyoung added a commit to forking-repos/pandas that referenced this issue Mar 26, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Mar 26, 2017
gfyoung added a commit to forking-repos/pandas that referenced this issue Mar 26, 2017
jreback pushed a commit that referenced this issue Mar 26, 2017
mattip pushed a commit to mattip/pandas that referenced this issue Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Design Deprecate Functionality to remove in pandas
Projects
None yet
Development

No branches or pull requests

3 participants