-
Notifications
You must be signed in to change notification settings - Fork 121
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
Inferred dtype property tests #856
Conversation
👍
Skip them by default (I think |
Ok I think I've got the tests sorted. Remaining questions:
|
It looks so to me! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am happy with the PR. Feel free to merge or ask others opinions. :)
Description
We've had a few issues with the inferred dtype logic (unsurprising, it's tricky!). I thought we may benefit from some property tests moving forward.
Basic Idea
I've written a generator for dtypes and a generator for series of a specific dtype. I'm currently testing roughly the following property:
where
sub_dtype_of?
deals with the fact that empty lists result in the:null
dtype.First hit
I believe I've already found a bug with these tests. I've included it and the code which generated it as a demonstration.
Considerations before merging