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

Function checkIfNullString

union/TUS/generalFunctions.py:58–63  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

56
57#checks different types of nulls in string
58def checkIfNullString(string):
59 nullList = ['nan','-','unknown','other (unknown)','null','na', "", " "]
60 if str(string).lower() not in nullList:
61 return 1
62 else:
63 return 0
64
65#remove hyphen and whitespaces from the table name
66def cleanTableName(string):

Callers 1

preprocessListValuesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected