Skip to content
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

Issue modifying data in object arrays in DataFrame #473

Closed
wesm opened this issue Dec 12, 2011 · 0 comments
Closed

Issue modifying data in object arrays in DataFrame #473

wesm opened this issue Dec 12, 2011 · 0 comments
Labels
Milestone

Comments

@wesm
Copy link
Member

wesm commented Dec 12, 2011

reported by user

import pandas
pandas
import numpy as np
from pandas import DataMatrix
Y = DataMatrix( np.random.random( (4,4) ) , index = ('a','b','c','d') , columns = ('e','f','g','h' ))
Y
Y['e'] = Y['e'].astype('object')
Y['g']['c'] = np.NaN
Y
Y.sum()
Y['g'].sum()

Appears to be caused by a stale reference to a block

wesm added a commit that referenced this issue Dec 12, 2011
@wesm wesm closed this as completed Dec 12, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant