reV.hybrids.hybrids.ColNameFormatter

class ColNameFormatter[source]

Bases: object

Column name formatting helper class.

Methods

fmt(n)

Format an input column name to remove excess chars and whitespace.

Attributes

ALLOWED

classmethod fmt(n)[source]

Format an input column name to remove excess chars and whitespace.

This method should help facilitate the merging of column names between two DataFrames.

Parameters:

n (str) – Input column name.

Returns:

str – The column name with all characters except ascii stripped and all lowercase.