BUG: Fix the rename for Series and DataFrame, #3165
Merge pull request #3175 from waitingkuo/fix-rename

BUG: Fix the rename function for Series and DataFrame, #3165