def standardize_moughataa_commune_float(str_name):
    """Checks if the name could be a float by trying to cast it.
    If it is, then we must replace the value by None.

    Args:
        str_name (str): name of the moughataa or commune.

    Returns:
        str_name (str): original name or None.
    """
    try:
        float_name = float(str_name)
        return None
    except Exception as e:
        return str_name