15d6dc183f3c321632b3bc592f408426a2b3e333
python/pandas/Index\343\201\214\351\207\215\350\244\207\343\201\227\343\201\246\343\201\204\343\202\213\350\241\214\343\202\222\345\217\226\345\276\227\343\201\231\343\202\213.md
... | ... | @@ -0,0 +1,6 @@ |
1 | +参考: [https://stackoverflow.com/a/33381246/11842985](https://stackoverflow.com/a/33381246/11842985) |
|
2 | + |
|
3 | +``` |
|
4 | +duplicated_rows = df[df.index.duplicated(keep=False)] |
|
5 | +duplicated_rows.sort_index() |
|
6 | +``` |
|
... | ... | \ No newline at end of file |