Skip to content

Some reverse binary operations fail with dtype=object #56

Closed
@wesm

Description

@wesm

See example

In [12]: arr = Series(np.random.randn(10), index=np.arange(10), dtype=object)

In [13]: arr
Out[13]: 
0    -0.475934738891
1    0.602096986911
2    0.731158853064
3    -0.268872970066
4    0.607786684074
5    -0.0200444918205
6    1.93289485517
7    1.14860246486
8    -0.138246858663
9    0.382736317471

In [14]: 1. / arr
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
/Users/wesm/Downloads/<ipython-input-14-6df87fcc597b> in <module>()
----> 1 1. / arr

TypeError: unsupported operand type(s) for /: 'float' and 'Series'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions