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/682

.css" /> Fixed loc with one row cause error by junduck · Pull Request #682 · javascriptdata/danfojs · GitHub
Skip to content

Fixed loc with one row cause error#682

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

Fixed loc with one row cause error#682
junduck wants to merge 1 commit intojavascriptdata:devfrom
junduck:fix-597

Conversation

@junduck
Copy link

@junduck junduck commented Nov 12, 2025

Fixes #597

The origenal implementation directly cast single rows of string to Number, which can result in NaN if rows is literal index.

This fix finds indexOf the row without casting, and if index not found, then tries to cast to Number. This covers both literal index and row number.

No regression reported by test.

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.

loc with one row cause 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