Skip to content

TST: DF should not error when 'columns' is a list that contains dupes #2036

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pandas/tests/test_frame.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# pylint: disable-msg=W0612,E1101
from __future__ import with_statement
from copy import deepcopy
from datetime import datetime, timedelta
from StringIO import StringIO
Expand Down Expand Up @@ -1107,6 +1108,9 @@ def test_getitem_list_duplicates(self):
expected = df.ix[:, 2:]
assert_frame_equal(result, expected)

def test_dupes_in_col_list (self):
DataFrame([[8,5]],columns=["a","a"])

def test_get_value(self):
for idx in self.frame.index:
for col in self.frame.columns:
Expand Down