pandas-datareader
pandas-datareader copied to clipboard
Drop row with duplicated index
There are cases in yahoo data where there are duplicated rows, this simple fix will remove the second duplicated row if it exists. A stack overflow thread that contains people facing this error is https://stackoverflow.com/questions/57885790/valueerror-index-contains-duplicate-entries-cannot-reshape-pandas-datareader
- [ ] closes #xxxx
- [ ] tests added / passed
- [ ] passes
git diff upstream/master -u -- "*.py" | flake8 --diff - [ ] passes
black --check pandas_datareader - [ ] added entry to docs/source/whatsnew/vLATEST.txt
What if the values differ but he index doesn't? Should PDR return what Yahoo does?
I think you should only drop if the row is identical and the index is identical.