fixing pandas syntax typo