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

CLN: rename lib.isscalar to lib.is_scalar #19000

Merged
merged 2 commits into from
Dec 30, 2017
Merged

CLN: rename lib.isscalar to lib.is_scalar #19000

merged 2 commits into from
Dec 30, 2017

Conversation

databasedav
Copy link
Contributor

@databasedav databasedav commented Dec 30, 2017

There's also a handful of methods which call is_scalar that are named isscalar, e.g.:

@property
def isscalar(self):
return is_scalar(self._value)

should these be changed as well?

Also does a CLN require an entry in whatsnew?

@jbrockmendel
Copy link
Member

+1. This has bothered me for a while.

@codecov
Copy link

codecov bot commented Dec 30, 2017

Codecov Report

Merging #19000 into master will not change coverage.
The diff coverage is 75%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master   #19000   +/-   ##
=======================================
  Coverage   91.58%   91.58%           
=======================================
  Files         150      150           
  Lines       48972    48972           
=======================================
  Hits        44851    44851           
  Misses       4121     4121
Flag Coverage Δ
#multiple 89.94% <75%> (ø) ⬆️
#single 41.72% <25%> (ø) ⬆️
Impacted Files Coverage Δ
pandas/core/algorithms.py 94.14% <0%> (ø) ⬆️
pandas/core/dtypes/inference.py 98.36% <100%> (ø) ⬆️
pandas/core/indexes/datetimelike.py 97.04% <100%> (ø) ⬆️
pandas/core/indexes/base.py 96.45% <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 8433562...b3e943d. Read the comment docs.

@jreback jreback added the Clean label Dec 30, 2017
@jreback
Copy link
Contributor

jreback commented Dec 30, 2017

you can change isscalar as you pointed above (and other instances as appropriate). making things more clear / consistent is the goal. don't need a whatsnew here as this is an internal change.

@jreback
Copy link
Contributor

jreback commented Dec 30, 2017

lgtm. note that windows is currently failing, but ping when travis ci is green.

@jreback jreback added this to the 0.23.0 milestone Dec 30, 2017
@jreback jreback merged commit 461221d into pandas-dev:master Dec 30, 2017
@jreback
Copy link
Contributor

jreback commented Dec 30, 2017

thanks @gitavi

hexgnu pushed a commit to hexgnu/pandas that referenced this pull request Jan 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLN: rename lib.isscalar to lib.is_scalar
3 participants