pandas 0.7.3 documentation

pandas.DataFrame.combine_first

DataFrame.combine_first(other)

Combine two DataFrame objects and default to non-null values in frame calling the method. Result index will be the union of the two indexes

Parameters :other : DataFrame
Returns :combined : DataFrame

Examples

>>> a.combine_first(b)
    a's values prioritized, use values from b to fill holes