nanops working with series and dataframe