Skip to content

Some reverse binary operations fail with dtype=object #56

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wesm opened this issue Jul 5, 2011 · 1 comment
Closed

Some reverse binary operations fail with dtype=object #56

wesm opened this issue Jul 5, 2011 · 1 comment

Comments

@wesm
Copy link
Member

wesm commented Jul 5, 2011

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'
wesm added a commit that referenced this issue Jul 7, 2011
wesm added a commit that referenced this issue Jul 7, 2011
* master:
  BUG: fixed GH #56
  BUG: in as_matrix with subset of columns with single-block
  always copy data when inserting into DataFrame. failing reverse op dtype=object unit test
@wesm
Copy link
Member Author

wesm commented Jul 8, 2011

fixed in referenced commits

@wesm wesm closed this as completed Jul 8, 2011
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
new VersionStore API - get_data_info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant