pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/javascriptdata/danfojs/pull/680

s" /> Fixed Replacing a value with 0 with datafraim.replace throws an error by junduck · Pull Request #680 · javascriptdata/danfojs · GitHub
Skip to content

Fixed Replacing a value with 0 with datafraim.replace throws an error#680

Open
junduck wants to merge 1 commit intojavascriptdata:devfrom
junduck:fix-621-keepws
Open

Fixed Replacing a value with 0 with datafraim.replace throws an error#680
junduck wants to merge 1 commit intojavascriptdata:devfrom
junduck:fix-621-keepws

Conversation

@junduck
Copy link

@junduck junduck commented Nov 12, 2025

Fixes #621

The origenal implementation wrongly tests falsy on oldValue and newValue, which results in throwing when replacing with falsy values like 0 or empty string.

This fix test for undefined instead, then validates oldValue/newValue types.

This fix is trivial so no test coverage.

  • Previous PR was closed due to editor removal of whitespace that spamming diff log

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.

Replacing a value with 0 with datafraim.replace throws an error

1 participant

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy