awslabs / python-deequ

Python API for Deequ
Apache License 2.0
702 stars 132 forks source link

Update scala_utils.py to handle empty strings in java_list_to_python_list #11

Closed MOHACGCG closed 3 years ago

MOHACGCG commented 3 years ago

"handle empty values in scala_utils.py->java_list_to_python_list"

Issue #, if available: https://github.com/awslabs/python-deequ/issues/12

Description of changes: java_list_to_python_list attempts to convert java lists to python lists, however, it is not handling empty values correctly. For example when the java string is [''], attempting to create a float with float('') will fail. This change sets empty values to python None.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.