Skip to content

Commit ad9bba3

Browse files
jrebackwesm
authored andcommitted
DOC: update release notes
1 parent b74b2dd commit ad9bba3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

RELEASE.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ pandas 0.10.1
6262
values. (GH2631_)
6363
- Attempt to parse ISO8601 format dates when parse_dates=True in read_csv for
6464
major performance boost in such cases (GH2698_)
65+
- Add methods ``neg`` and ``inv`` to Series
6566

6667
**Bug fixes**
6768

@@ -95,6 +96,7 @@ pandas 0.10.1
9596
- Fix C parser-tokenizer bug with trailing fields. (GH2668_)
9697
- Don't exclude non-numeric data from GroupBy.max/min (GH2700_)
9798
- Don't lose time zone when calling DatetimeIndex.drop (GH2621_)
99+
- Fix setitem on a Series with a boolean key and a non-scalar as value (GH2686_)
98100

99101
**API Changes**
100102

@@ -126,6 +128,7 @@ pandas 0.10.1
126128
.. _GH2699: https://github.com/pydata/pandas/issues/2699
127129
.. _GH2700: https://github.com/pydata/pandas/issues/2700
128130
.. _GH2694: https://github.com/pydata/pandas/issues/2694
131+
.. _GH2686: https://github.com/pydata/pandas/issues/2686
129132

130133
pandas 0.10.0
131134
=============

pandas/core/series.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ def where(self, cond, other=nan, inplace=False):
616616
if len(cond) != len(self):
617617
raise ValueError('condition must have same length as series')
618618

619-
if not cond.dtype == np.bool_:
619+
if cond.dtype != np.bool_:
620620
cond = cond.astype(np.bool_)
621621

622622
ser = self if inplace else self.copy()
@@ -675,7 +675,6 @@ def __setitem__(self, key, value):
675675
# Could not hash item
676676

677677
if _is_bool_indexer(key):
678-
#import pdb; pdb.set_
679678
key = self._check_bool_indexer(key)
680679
self.where(~key,value,inplace=True)
681680
else:
@@ -759,7 +758,7 @@ def _check_bool_indexer(self, key):
759758
# coerce to bool type
760759
if not hasattr(result, 'shape'):
761760
result = np.array(result)
762-
if not result.dtype == np.bool_:
761+
if result.dtype != np.bool_:
763762
result = result.astype(np.bool_)
764763

765764
return result

0 commit comments

Comments
 (0)