def title_from_columns(cols):
 if (cols is not None):
  cols_title = copy(cols)
  if (not isinstance(cols_title, list)):
   cols_title = [cols_title]
  return str(', '.join(cols_title).title()).title()
 else:
  return None

def title_from_columns ( cols ) : if ( cols is not None ) : cols_title = copy ( cols ) if ( not isinstance ( cols_title , list ) ) : cols_title = [ cols_title ] return str ( ', ' . join ( cols_title ) . title ( ) ) . title ( ) else : return None
creates standard string representation of columns .