Closed gaogaotiantian closed 2 years ago
I'd like to try it out, how would I install it? I tried pip install watchpoints --upgrade but it says I already have version 0.2.5 . Is that the latest version now ?
It's not released so you'll need to install from the repo - pip install git+https://github.com/gaogaotiantian/watchpoints.git
You'll probably need some other packages to build the wheels.
When I'm looking at the code, I remembered that watchpoints
has a way to solve it - you can use a user-defined compare function, which is a general solution for data structures with weird __eq__
functions.
I think the syntax would be watch(df, cmp=lambda df1, df2: not df1.equals(df2))
. I'm not 100% sure if you need a special copy function as I'm not an expert on DataFrame
.
https://github.com/gaogaotiantian/watchpoints/blob/master/tests/test_pandas.py#L46 this was in the test suite for a while to test cmp
argument.
Let me know if you'd like to try the cmp
argument out, or if you have any issues installing from git.
Codecov Report
100.00% <100.00%> (ø)
Continue to review full report at Codecov.