Skip to content

Added exception for invalid dtypes per issue #15520 #15574

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

Added exception for invalid dtypes per issue #15520 #15574

wants to merge 1 commit into from

Conversation

trevorpburke
Copy link

@trevorpburke trevorpburke commented Mar 5, 2017

close #15520

  • closes #xxxx
  • tests added / passed
  • passes git diff upstream/master | flake8 --diff
  • whatsnew entry

@jreback
Copy link
Contributor

jreback commented Mar 5, 2017

tests!

dtype = self._validate_dtype(dtype)
if dtype is numpy.dtype or dtype is pandas.dtype:
dtype = self._validate_dtype(dtype)
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you would change this in the _validate_dtype method

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh! pandas/pandas/indexes/range.py, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is in generic.py

@jreback
Copy link
Contributor

jreback commented Mar 5, 2017

tests!

@jreback
Copy link
Contributor

jreback commented Mar 10, 2017

if you'd like to add some tests, ping and can reopen

@jreback jreback closed this Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: invalid dtypes should raise
2 participants