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

Doesnt work with pandas dataframes #30

Closed
rsemenoff opened this issue Mar 11, 2022 · 1 comment · Fixed by #31
Closed

Doesnt work with pandas dataframes #30

rsemenoff opened this issue Mar 11, 2022 · 1 comment · Fixed by #31

Comments

@rsemenoff
Copy link

File "C:\Users\Rwsin\myproject\venv\Lib\site-packages\watchpoints\watch.py", line 50, in call
self.start_trace(frame)
File "C:\Users\Rwsin\myproject\venv\Lib\site-packages\watchpoints\watch.py", line 66, in start_trace
threading.settrace(self.tracefunc)
File "C:\Users\Rwsin\AppData\Local\Programs\Python\Python38\Lib\threading.py", line 67, in settrace
def settrace(func):
File "C:\Users\Rwsin\myproject\venv\Lib\site-packages\watchpoints\watch.py", line 130, in tracefunc
changed, exist = elem.changed(frame)
File "C:\Users\Rwsin\myproject\venv\Lib\site-packages\watchpoints\watch_element.py", line 90, in changed
return self.obj_changed(self.prev_obj), True
File "C:\Users\Rwsin\myproject\venv\Lib\site-packages\watchpoints\watch_element.py", line 110, in obj_changed
return not guess
File "C:\Users\Rwsin\myproject\venv\Lib\site-packages\pandas\core\generic.py", line 1442, in nonzero
raise ValueError(
ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().

@gaogaotiantian
Copy link
Owner

This should be fixable. I'll fix it soon.

@gaogaotiantian gaogaotiantian linked a pull request Mar 15, 2022 that will close this issue
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 a pull request may close this issue.

2 participants