-
Notifications
You must be signed in to change notification settings - Fork 723
fix: handled the null values in the dataframe for existing open issue-2690 #3244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Addressed the issue: #2690 |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
|
Hello @jaidisido, |
|
Thank you @Kukreti12 for chasing that bug down! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Overview
Fixes a TypeError in execute_sparql when SPARQL bindings contain NaN or non-dict values.
Adds a focused unit test to validate safe extraction of SPARQL binding values.
Changes
_neptune.py:
Update execute_sparql: safely extract cell values using a dict-type check; non-dict/NaN cells map to None.
Implementation: per-column Series.apply with _binding_value(d) to avoid type-checker issues with applymap.
test_neptune.py:
Add test_sparql_bindings_nan_safe with sanitized, non-sensitive dataset (single row).
Assert correct DataFrame shape (1, 5) and that missing checked_out maps to None.
Motivation
Prevents TypeError: argument of type 'float' is not iterable when bindings include NaN or missing values.
Validation
Unit test test_sparql_bindings_nan_safe passes locally: confirms null-safe behavior and correct value extraction.