Skip to content

BUG: FooIndex.insert casting datetimelike NAs incorrectly #36374

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

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • passes black pandas
  • passes git diff upstream/master -u -- "*.py" | flake8 --diff
  • whatsnew entry

@jreback jreback added Datetime Datetime data dtype Interval Interval data type labels Sep 17, 2020
@jreback
Copy link
Contributor

jreback commented Sep 17, 2020

any perf issues? can you rebase

@jbrockmendel
Copy link
Member Author

any perf issues?

we'll take a hit in cases where we now cast to object, but id call those bugs in master.

can you rebase

done + green

@jreback jreback added this to the 1.2 milestone Sep 17, 2020
@@ -100,10 +100,14 @@ def test_insert(self):

# GH 18295 (test missing)
expected = Float64Index([0, np.nan, 1, 2, 3, 4])
for na in (np.nan, pd.NaT, None):
for na in [np.nan, None, pd.NA]:
Copy link
Contributor

Choose a reason for hiding this comment

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

could eventually parameterize on the null_fixture

@jreback jreback merged commit 234f5ac into pandas-dev:master Sep 17, 2020
@jbrockmendel jbrockmendel deleted the ref-numeric_idx-validate_insert_value branch September 17, 2020 23:50
kesmit13 pushed a commit to kesmit13/pandas that referenced this pull request Nov 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Interval Interval data type
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants