Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Checking that a pandas.Series.index contains a value #22085
Code Sample, a copy-pastable example if possible
# Your code here import numpy as np import pandas as pd some_numbers = np.random.randint(0,4,size=10) print(some_numbers) s = pd.Series(some_numbers) gb = s.groupby(s).size() / len(s) print(gb) 1.3 in gb
I reported it here. The output of the last line is True instead of being False.
This is because of cython casting the input float to int.
Small example showing that behaviour:
Not sure if you can let cython not do such a cast on demand? (cc @jreback)