pandas.DataFrame.combine_first
pandas 3.1.1 · DataFrame · method
Fill missing positions from a second aligned object while keeping existing valid values.
Call syntax
DataFrame.combine_first(other)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
other |
Required Positional or keyword |
DataFrame Supply the second object or value used in the operation. |
Returns
DataFrame