do computing of bandwidth before groupby