Skip to content

Avoid inplace replace on Attendance Series#509

Open
sophieallen0798 wants to merge 1 commit into
jldbc:masterfrom
sophieallen0798:fix/attendance-copy-on-write
Open

Avoid inplace replace on Attendance Series#509
sophieallen0798 wants to merge 1 commit into
jldbc:masterfrom
sophieallen0798:fix/attendance-copy-on-write

Conversation

@sophieallen0798
Copy link
Copy Markdown

@sophieallen0798 sophieallen0798 commented May 18, 2026

Replaces the inplace Attendance.replace() call with an explicit assignment.

A chained assignment error can occur with newer pandas versions when calling schedule_and_record(), and "Unknown" attendance values may not get converted to NaN before the float conversion step.

This change keeps the same behavior but avoids the Copy-on-Write/chained assignment 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 this pull request may close these issues.

1 participant