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

DISP: Address pd warning. #713

Merged
merged 1 commit into from
Oct 4, 2024
Merged

DISP: Address pd warning. #713

merged 1 commit into from
Oct 4, 2024

Conversation

ntustison
Copy link
Member

One way of addressing the following warning:

>>> meas = ants.label_overlap_measures(dkt, dkt_repaired)
/Users/ntustison/anaconda3/lib/python3.11/site-packages/ants/label/label_overlap_measures.py:43: SettingWithCopyWarning: 
A value is trying to be set on a copy of a slice from a DataFrame

See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
  df.Label[0] = "All"

@coveralls
Copy link

Coverage Status

coverage: 84.729% (+0.003%) from 84.726%
when pulling f59ba03 on SuppLabelWarning
into 280ff64 on master.

@ntustison ntustison merged commit be10edc into master Oct 4, 2024
2 checks passed
@ntustison ntustison deleted the SuppLabelWarning branch October 4, 2024 00:58
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

Successfully merging this pull request may close these issues.

2 participants