call the c-function with pd.Series inputs converted to np.ndarrays