def _sanitize_field_name(self, field_name):
        field_name = field_name.replace(self._field_prefix, '')
        return field_name.replace('.', '_').replace('-', '_').lower()
Sanitizes an XML field name (since it might have characters which would make it inaccessible as a python attribute).
dataset/ETHPy150Open KimiNewt/pyshark/src/pyshark/packet/layer.py/Layer._sanitize_field_name