Skip to content

Commit a2ecb0c

Browse files
committed
ENH: raise NotImplementedError if user tries to iterate over .ix, GH #840
1 parent 3050bf2 commit a2ecb0c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

pandas/core/indexing.py

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ def __init__(self, obj):
2020
self.obj = obj
2121
self.ndim = obj.ndim
2222

23+
def __iter__(self):
24+
raise NotImplementedError('ix is not iterable')
25+
2326
def __getitem__(self, key):
2427
if isinstance(key, tuple):
2528
try:

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@
22

33
"""
44
Parts of this file were taken from the pyzmq project
5-
(https://github.com/zeromq/pyzmq) and hence are subject to the terms of the
6-
Lesser GNU General Public License.
7-
Parts are from lxml (https://github.com/lxml/lxml)
5+
(https://github.com/zeromq/pyzmq) which have been permitted for use under the
6+
BSD license. Parts are from lxml (https://github.com/lxml/lxml)
87
"""
98

109
from datetime import datetime

0 commit comments

Comments
 (0)