wesm/pandas — comment on commit b5e7ade4514bad1c6f5c54c24c05b4e8373f8b53
File:  line 0
By lodagro:

pandas '0.6.0' fails unittest covering this issue.

```
======================================================================
ERROR: test_series_frame_radd_bug (pandas.tests.test_series.TestSeries)
----------------------------------------------------------------------
Traceback (most recent call last):
File "../lib/python2.7/site-packages/pandas/tests/test_series.py", line 779, in test_series_frame_radd_bug
result = 'foo_' + vals
File "../lib/python2.7/site-packages/pandas/core/series.py", line 57, in wrapper
return Series(op(self.values, other), index=self.index,
File ".../lib/python2.7/site-packages/pandas/core/series.py", line 474, in
__radd__ = _arith_method(lambda x, y: y + x, '__add__')
TypeError: function not supported for these types, and can't coerce safely to supported types

----------------------------------------------------------------------
```

```python
In [14]: vals = Series([rands(5) for _ in xrange(10)])

In [15]: vals
Out[15]:
0 E8c1f
1 TM7eb
2 mnNEy
3 e0BVD
4 531TA
5 G1BUv
6 MIzMd
7 s44BI
8 Kosx3
9 dT1kb

In [16]: vals + '_foo'
Out[16]:
0 E8c1f_foo
1 TM7eb_foo
2 mnNEy_foo
3 e0BVD_foo
4 531TA_foo
5 G1BUv_foo
6 MIzMd_foo
7 s44BI_foo
8 Kosx3_foo
9 dT1kb_foo

In [17]: 'foo_' + vals
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
----> 1 'foo_' + vals

.../lib/python2.7/site-packages/pandas/core/series.pyc in wrapper(self, other)
55 else:
56 # scalars

---> 57 return Series(op(self.values, other), index=self.index,
58 name=self.name)
59 return wrapper

../lib/python2.7/site-packages/pandas/core/series.pyc in (x, y)
472 __pow__ = _arith_method(operator.pow, '__pow__')
473
--> 474 __radd__ = _arith_method(lambda x, y: y + x, '__add__')
475 __rmul__ = _arith_method(operator.mul, '__mul__')
476 __rsub__ = _arith_method(lambda x, y: y - x, '__sub__')

TypeError: function not supported for these types, and can't coerce safely to supported types

In [18]: pandas.__version__
Out[18]: '0.6.0'
```