You are probably using a version that is 0.13.0 or later where Series now subclasses NDFrame
, you have to now do this to return a numpy array:
prop_cumsum.values.searchsorted(0.5)
as searchsorted is a numpy function and not a Pandas Series function.
See the online docs