def _construct_divmod_result(left, result, index, name, dtype):
 constructor = left._constructor
 return (constructor(result[0], index=index, name=name, dtype=dtype), constructor(result[1], index=index, name=name, dtype=dtype))

def _construct_divmod_result ( left , result , index , name , dtype ) : constructor = left . _constructor return ( constructor ( result [ 0 ] , index = index , name = name , dtype = dtype ) , constructor ( result [ 1 ] , index = index , name = name , dtype = dtype ) )
divmod returns a tuple of like indexed series instead of a single series .