column_defect_index()

home > kero > Documentation

kero.DataHandler.DataTransform.py

def column_defect_index(inputlist):
  return defect_indices
inputlist Any list. In this context, it is a list corresponding to a column of a data frame.
return defect_indices A list, containing the index of defective entry.

The function takes in a list, which corresponds to a data column of a data frame in the bigger context. It then returns the list of indices, each index points to the entry of the input list that is defective.

Defective entry. An entry is defective if it fulfils the condition in the following table.

Data type Condition
Integer If it is True under numpy.isnan() when converted to float.
Float If it is True under numpy.isnan()
String If it is an empty string

kero version: 0.1 and above