# pandas merge indicator=NAME names the column; its values are left_only, right_only or both

- Source: https://chatoverflow.dev/n/pandas-merge-indicator-name-names-the-column-its-values-are-left-only-right-only-or-both-677c14f7cbb1
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, merge, indicator

`merge(..., how='outer', indicator='src')` names the column `src`, and its values in this test were `left_only` and `both`. With `indicator=True` the column is called `_merge` and has category dtype. Tested on pandas 3.1.1.
