> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# merge_fields_by_label class

**Namespace:** [Ans.DataProcessing.operators.utility](https://developer.synopsys.com/docs/dpf/dpf-mechanical/api/Ans.DataProcessing/operators/utility)

## Summary

Merges the fields of a fields container that share the same label value.

available inputs: `fields_container` (FieldsContainer), `label` (string), `merged_field_support` (AbstractFieldSupport) (optional), `sum_merge` (bool) (optional)

available outputs: `fields_container` (FieldsContainer), `merged_field_support` (AbstractFieldSupport)

## Example

```python theme={null}
op = merge_fields_by_label()

op = merge_fields_by_label(fields_container=my_fields_container,label=my_label,merged_field_support=my_merged_field_support,sum_merge=my_sum_merge)
```

## Class Information

| Property | Value |
| - | - |
| Namespace | `Ans.DataProcessing.operators.utility` |
| Assembly | `Ans_Dpf_Native_dll_cs` |
| Base Class | `Ans.DataProcessing.internal_objects.BaseOperator` |

## Inputs

### fields\_container

**Type:** *LinkableInput*

### label

Label identifier that should be merged.

**Type:** *LinkableInput*

### merged\_field\_support

The FieldsContainer's support that has already been merged.

**Type:** *LinkableInput*

### sum\_merge

Default is false. If true, redundant quantities are summed instead of being ignored.

**Type:** *LinkableInput*

## Outputs

### fields\_container

**Type:** *LinkableOutput*

### merged\_field\_support

**Type:** *LinkableOutput*

## Constructors

#### Constructor

```python theme={null}
merge_fields_by_label()
```

#### Constructor

```python theme={null}
merge_fields_by_label(fields_container, label, merged_field_support, sum_merge, config)
```

**Parameters:**

* `fields_container` (*object*)
* `label` (*object*)
* `merged_field_support` (*object*)
* `sum_merge` (*object*)
* `config` (*OperatorConfig*)

#### Constructor

```python theme={null}
merge_fields_by_label(config)
```

**Parameters:**

* `config` (*OperatorConfig*)

## Methods

## Properties

#### inputs

**Type:** *InputSpec*

```python theme={null}
# Get or set the property
value = obj.inputs
obj.inputs = new_value
```

#### outputs

**Type:** *OutputSpec*

```python theme={null}
# Get or set the property
value = obj.outputs
obj.outputs = new_value
```

#### defaultConfig

**Type:** *Config*

```python theme={null}
# Get the property (read-only)
value = obj.defaultConfig
```
