gaogaotiantian / watchpoints

watchpoints is an easy-to-use, intuitive variable/object monitor tool for python that behaves similar to watchpoints in gdb.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesnt work with pandas dataframes

rsemenoff opened this issue · comments

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().

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