code: def last_mile_cleaning(df, **kwargs):
      chronometer = Chronometer.makeStarted()
      for col, dtype in df.dtypes.iteritems():
          if str(dtype) == "category":
              df[col] = df[col].cat.codes
          df[col] = df[col].astype("float32")
      df["delinquency_12"] = df["delinquency_12"] > 0
      df["delinquency_12"] = (
          df["delinquency_12"].fillna(False).astype("int32")
      )
      for column in df.columns:
          df[column] = df[column].fillna(-1)
      Chronometer.show(chronometer, "Last mile cleaning")
      return df
  
imports: import time
  from collections import OrderedDict
  import numpy
  import pandas
  import pyblazing
  from pyblazing import DriverType, FileSystemType, SchemaFrom, get_dtype_values
  from sklearn.model_selection import train_test_split
  import xgboost
  from Configuration import Settings
  from DemoTest.chronometer import Chronometer
  from Utils import Execution
label_desc: Use image node_id 20 for calling a global function with example usage: last_mile_cleaning(df) and returns: df