Skip to content

Conversation

@avinashpancham
Copy link
Contributor

@avinashpancham
Copy link
Contributor Author

avinashpancham commented Nov 15, 2020

Ran some perf benchmarks for tests that were troublesome last time (#21893): series_methods.IsIn.time_isin, categoricals.Isin.time_isin_categorical and indexing.MultiIndexing.time_index_slice did not significantly change

Will run entire test suite once we agree on the imp, since the run takes quite some time.

if is_numeric_dtype(dtype):
# Try downcasting values if comps is numeric to prevent precision
# loss resulting from casting values to comps its exact dtype
try:
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 what ensure_data does, and we really don't want to use try/excepts in this routine, everything should be via is_*

@jreback jreback added Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves labels Nov 15, 2020
@jreback
Copy link
Contributor

jreback commented Nov 15, 2020

note that this is duplicating: #37770 (though that has issues as well)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dtype Conversions Unexpected or buggy dtype conversions Indexing Related to indexing on series/frames, not to indexes themselves

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: unwanted casting in .isin

2 participants