File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ pandas 0.5.1
90
90
not in ascending order (GH #349)
91
91
- Fix failure passing Int64Index to Index.union when both are monotonic
92
92
- Fix error when passing SparseSeries to (dense) DataFrame constructor
93
+ - Added missing bang at top of setup.py (GH #352)
93
94
94
95
Thanks
95
96
------
Original file line number Diff line number Diff line change @@ -470,7 +470,7 @@ def iteritems(self):
470
470
__floordiv__ = _arith_method (operator .floordiv , '__floordiv__' )
471
471
__pow__ = _arith_method (operator .pow , '__pow__' )
472
472
473
- __radd__ = _arith_method (operator . add , '__add__' )
473
+ __radd__ = _arith_method (lambda x , y : y + x , '__add__' )
474
474
__rmul__ = _arith_method (operator .mul , '__mul__' )
475
475
__rsub__ = _arith_method (lambda x , y : y - x , '__sub__' )
476
476
__rtruediv__ = _arith_method (lambda x , y : y / x , '__truediv__' )
Original file line number Diff line number Diff line change @@ -706,6 +706,8 @@ def test_operators_corner(self):
706
706
self .assert_ (np .array_equal (added [:- 5 ], expected ))
707
707
708
708
def test_operators_reverse_object (self ):
709
+ from pandas .util .testing import rands
710
+
709
711
# GH 56
710
712
arr = Series (np .random .randn (10 ), index = np .arange (10 ),
711
713
dtype = object )
@@ -721,6 +723,12 @@ def _check_op(arr, op):
721
723
_check_op (arr , operator .truediv )
722
724
_check_op (arr , operator .floordiv )
723
725
726
+ # GH 353
727
+ vals = Series ([rands (5 ) for _ in xrange (10 )])
728
+ result = 'foo_' + vals
729
+ expected = vals .map (lambda x : 'foo_' + x )
730
+ assert_series_equal (result , expected )
731
+
724
732
def test_operators_frame (self ):
725
733
# rpow does not work with DataFrame
726
734
df = DataFrame ({'A' : self .ts })
You can’t perform that action at this time.
0 commit comments