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

SettingWithCopyWarning #2

Open
aroberge opened this issue Sep 24, 2022 · 2 comments
Open

SettingWithCopyWarning #2

aroberge opened this issue Sep 24, 2022 · 2 comments

Comments

@aroberge
Copy link
Contributor

Proof of concept: work in progress.
image
image

Some additional work is needed, in particular to transform the "file name" into something more helpful, like I usually do for tracebacks.

Since there is no traceback produced, the code does not stop running at the frame in which the warning is raised, which makes it a bit more difficult to get accurate information. However, it should be possible to get the frame in question.

@aroberge
Copy link
Contributor Author

Improved location with friendly_traceback 0.7.2
image

@aroberge
Copy link
Contributor Author

And here's a more interesting example when it comes to finding the location of the offending statement, even if it spans multiple lines.
image

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