Skip to content
Browse files

DOC add release notes for lix setitem

  • Loading branch information...
1 parent f3f2c7e commit 3bc01475c3ef0ce88eefb1998f6072b4002efb4d @kwgoodman committed
Showing with 8 additions and 4 deletions.
  1. +4 −0 RELEASE.rst
  2. +4 −4 la/deflarry.py
View
4 RELEASE.rst
@@ -23,6 +23,10 @@ la 0.7
- larry.sortaxis()
- larry.nan_replace()
+**Enhancements**
+
+- Added setitem ability to label indexing (lix)
+
**Breakage from la 0.6**
- Numpy array version of move_median() removed since bottleneck now used
View
8 la/deflarry.py
@@ -1926,7 +1926,7 @@ def lix(self):
array([1, 4])
"""
- return Lix(self)
+ return Lix(self)
def __setitem__(self, index, value):
"""
@@ -3919,7 +3919,7 @@ def nan_replace(self, replace_with=0):
"""
y = self.copy()
bn.replace(y.x, np.nan, replace_with)
- return y
+ return y
# Size, shape, type ------------------------------------------------------
@@ -4873,7 +4873,7 @@ def __getitem__(self2, index):
return y[index2]
elif typ == slice:
# Examples: lar.lix[['a']:], lar.lix[['a']:['b']],
- # lar.lix[['a']:['b']:2], lar.lix[2:['b']]
+ # lar.lix[['a']:['b']:2], lar.lix[2:['b']]
return y[slicemaker(index, y.labelindex, 0)]
elif typ == tuple:
index2 = []
@@ -4932,7 +4932,7 @@ def __setitem__(self2, index, value):
y[index2] = value
elif typ == slice:
# Examples: lar.lix[['a']:], lar.lix[['a']:['b']],
- # lar.lix[['a']:['b']:2], lar.lix[2:['b']]
+ # lar.lix[['a']:['b']:2], lar.lix[2:['b']]
y[slicemaker(index, y.labelindex, 0)] = value
elif typ == tuple:
index2 = []

0 comments on commit 3bc0147

Please sign in to comment.
Something went wrong with that request. Please try again.