From 5e6db32e3989b71597a88763467c5c2c96353123 Mon Sep 17 00:00:00 2001 From: y-p Date: Mon, 8 Oct 2012 00:00:27 +0200 Subject: [PATCH] TST: DF should not error when 'columns' is a list that contains dupes test_getitem_list_duplicates() shows that the same works for numpy arrays. --- pandas/tests/test_frame.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pandas/tests/test_frame.py b/pandas/tests/test_frame.py index 45ec1fa427410..51a4183720f43 100644 --- a/pandas/tests/test_frame.py +++ b/pandas/tests/test_frame.py @@ -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 @@ -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: