Skip to content

CLN: Split dtype inference tests #33690

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

Merged
merged 3 commits into from
Apr 21, 2020
Merged

CLN: Split dtype inference tests #33690

merged 3 commits into from
Apr 21, 2020

Conversation

dsaxton
Copy link
Member

@dsaxton dsaxton commented Apr 21, 2020

Breaking up some very large tests in dtypes/test_inference.py

@pep8speaks
Copy link

pep8speaks commented Apr 21, 2020

Hello @dsaxton! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-04-21 02:34:24 UTC

@dsaxton dsaxton added the Clean label Apr 21, 2020
@@ -892,25 +872,25 @@ def test_infer_dtype_period(self):
arr = np.array([pd.Period("2011-01", freq="D"), pd.Period("2011-02", freq="M")])
assert lib.infer_dtype(arr, skipna=True) == "period"

# starts with nan
Copy link
Member

Choose a reason for hiding this comment

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

IIRC this comment was related to needing a test specifically for the NaN coming before the period. can you add a comment in the appropriate place to that effect

@jbrockmendel
Copy link
Member

small comment request, otherwise LGTM nice cleanup

@simonjayhawkins simonjayhawkins added this to the 1.1 milestone Apr 21, 2020
@jreback jreback added the Testing pandas testing functions or related to the test suite label Apr 21, 2020
@jreback jreback merged commit 12068d2 into pandas-dev:master Apr 21, 2020
@jreback
Copy link
Contributor

jreback commented Apr 21, 2020

thanks @dsaxton

would take a followup to use the nulls_fixture rather than hard-coding the nan values

@dsaxton dsaxton deleted the clean-datetime-inference-tests branch April 21, 2020 12:51
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
* CLN: Split dtype inference tests

* Lint

* Include comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants