BUG: Fixed typo-related bug to resolve #9266
Resubmitting pull request #10576 to resolve issue #9266 .

@jreback — This should be good to merge.

merged via https://github.com/pydata/pandas/commit/384eb45587172b67c5de358b3e3c05cb0f61cdbd

thanks!
 Indeed, thanks!
