Skip to content

fix: replace deprecated inplace=True in privacy_measure.py for pandas 3.x compatibility - #79

Closed
Balamuralikrishna123 wants to merge 2 commits into
idtlab:developfrom
Balamuralikrishna123:fix/pandas-inplace-privacy-metrics
Closed

fix: replace deprecated inplace=True in privacy_measure.py for pandas 3.x compatibility#79
Balamuralikrishna123 wants to merge 2 commits into
idtlab:developfrom
Balamuralikrishna123:fix/pandas-inplace-privacy-metrics

Conversation

@Balamuralikrishna123

Copy link
Copy Markdown

hi, i was going through the codebase and noticed that privacy_measure.py
was using inplace=True with pandas replace() which is deprecated in
pandas 2.x and removed in pandas 3.x.
changed this:
data.replace("?", pd.NA, inplace=True)
to this:
data = data.replace("?", pd.NA)
this is a small fix but it prevents potential issues when running
AIDRIN with newer pandas versions. i noticed a similar fix was
already submitted in PR #78 so this completes that cleanup.
i am also working on adding Zarr format support in PR #76.

@kaveenh kaveenh closed this Mar 18, 2026
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.

2 participants