Skip to content

Fix quantize column ordering and error handling#133

Closed
neuralsorcerer wants to merge 2 commits into
facebookresearch:mainfrom
neuralsorcerer:fix-q
Closed

Fix quantize column ordering and error handling#133
neuralsorcerer wants to merge 2 commits into
facebookresearch:mainfrom
neuralsorcerer:fix-q

Conversation

@neuralsorcerer

Copy link
Copy Markdown
Collaborator

Changes:

  • Replaced the quantize function’s assertions with explicit TypeError exceptions to provide clearer feedback on invalid inputs.
  • Ensured quantize maintains the original DataFrame column order after transforming numeric fields.

@meta-cla meta-cla Bot added the cla signed label Nov 8, 2025
@talgalili

Copy link
Copy Markdown
Contributor

Thanks @neuralsorcerer for the PR!
Could you please extend the current tests so that they'll directly test and confirm the changes you've made?

Thanks!

@neuralsorcerer

Copy link
Copy Markdown
Collaborator Author

Hi @talgalili, updated with proper tests.

@meta-codesync

meta-codesync Bot commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

@talgalili has imported this pull request. If you are a Meta employee, you can view this in D86596456.

@talgalili

Copy link
Copy Markdown
Contributor

Thanks for the diff @neuralsorcerer - it's about to land.
Please feel welcome to continue improving 'balance'.

@neuralsorcerer

Copy link
Copy Markdown
Collaborator Author

Absolutely, will try my best 😃

@meta-codesync

meta-codesync Bot commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

@talgalili merged this pull request in 811c269.

@neuralsorcerer neuralsorcerer deleted the fix-q branch November 8, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants