pandas-whisperers: there's probably a better way to accomplish this- any ideas?