Skip to content

ENH: replace uses of np.isscalar with pd.lib.isscalar #12459

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 1 commit into from
Closed

ENH: replace uses of np.isscalar with pd.lib.isscalar #12459

wants to merge 1 commit into from

Conversation

chrisaycock
Copy link
Contributor

Closes #8708

Added note that pd.lib.isscalar() returns True for None, which is different from np.isscalar().

@jreback jreback added Internals Related to non-user accessible pandas implementation Compat pandas objects compatability with Numpy or Python functions labels Feb 26, 2016
@jreback
Copy link
Contributor

jreback commented Feb 26, 2016

I don't see any tests for lib.isscalar itself. Can you add some in test_common.py (and of course include None for this)

@jreback jreback added this to the 0.18.0 milestone Feb 26, 2016
@chrisaycock
Copy link
Contributor Author

Tests for lib.isscalar are already in test_lib.py.

https://github.com/pydata/pandas/blob/master/pandas/tests/test_lib.py#L189

Do you want these moved to test_common.py?

@jreback jreback closed this in 1cd87c9 Feb 27, 2016
@jreback
Copy link
Contributor

jreback commented Feb 27, 2016

@chrisaycock thanks!

FYI, build was failing because of some flake warnings.

@chrisaycock chrisaycock deleted the lib_isscalar branch February 27, 2016 16:30
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 Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants