MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / checkIfNullString

Function checkIfNullString

union/Santos/expandSearch.py:27–32  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

25 return (string)
26
27def checkIfNullString(string):
28 nullList = ['nan','-','unknown','other (unknown)','null','na', "", " "]
29 if str(string).lower() not in nullList:
30 return 1
31 else:
32 return 0
33
34def preprocessListValues(valueList):
35 valueList = [x.lower() for x in valueList if checkIfNullString(x) !=0]

Callers 1

preprocessListValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected