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

pandas warning in filter_outliers #50

Open
nhoffman opened this issue Apr 4, 2016 · 4 comments
Open

pandas warning in filter_outliers #50

nhoffman opened this issue Apr 4, 2016 · 4 comments
Assignees

Comments

@nhoffman
Copy link
Member

nhoffman commented Apr 4, 2016

/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pandas/core/indexing.py:284: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
  self.obj[key] = _infer_fill_value(value)
/home/travis/virtualenv/python2.7.9/lib/python2.7/site-packages/pandas/core/indexing.py:461: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
@crosenth
Copy link
Member

On my list to fix soon

@nhoffman
Copy link
Member Author

@crosenth - there are actually a number of warnings when the tests are run... when you get a chance, maybe you can figure out how to fix them?

@crosenth
Copy link
Member

I have fixed some of the warnings.

There is an additional warning coming from numpy.median that numpy may fix in a future numpy release.

deenurp-env/lib/python2.7/site-packages/numpy/core/fromnumeric.py:664: UserWarning: Warning: 'partition' will ignore the 'mask' of the MaskedArray.
  a.partition(kth, axis=axis, kind=kind, order=order)

@nhoffman
Copy link
Member Author

I'm in the process of fixing this - the easiest fix seems to be to discard the masked values using the .compressed() method before passing to np.percentile()

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

2 participants