Skip to content

COMPAT: compatibility with pandas 3#283

Merged
jGaboardi merged 2 commits intomainfrom
pandas3-compat
Dec 14, 2025
Merged

COMPAT: compatibility with pandas 3#283
jGaboardi merged 2 commits intomainfrom
pandas3-compat

Conversation

@martinfleis
Copy link
Contributor

@martinfleis martinfleis commented Dec 14, 2025

This resolves #281 . Pandas 3 copy-on-write logic has bitten us here.

cc @anastassiavybornova as this was your piece of code. Something to avoid in future.

@codecov
Copy link

codecov bot commented Dec 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.8%. Comparing base (ac48821) to head (8ec7df0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##            main    #283     +/-   ##
=======================================
- Coverage   99.1%   98.8%   -0.2%     
=======================================
  Files          7       7             
  Lines       1275    1274      -1     
=======================================
- Hits        1263    1259      -4     
- Misses        12      15      +3     
Files with missing lines Coverage Δ
neatnet/artifacts.py 98.3% <100.0%> (-<0.1%) ⬇️

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

@jGaboardi jGaboardi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martinfleis – great find!

Another approach could be in L355 to do:

is_artifact = polys["is_artifact"].copy()

That would also solve to problem, correct? Or no?

@jGaboardi jGaboardi added the bug Something isn't working label Dec 14, 2025
@jGaboardi jGaboardi merged commit a13439a into main Dec 14, 2025
12 checks passed
@jGaboardi jGaboardi deleted the pandas3-compat branch December 14, 2025 15:46
@martinfleis
Copy link
Contributor Author

Unlikely. We are changing the values of the column in the loop below so making the copy beforehand does not update the reference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failures associated with dev

2 participants

Comments