Skip to content

general dataframe combine doc #25359

Closed
Closed
@wangfengming

Description

@wangfengming

Problem description

https://github.com/pandas-dev/pandas/blob/master/doc/source/getting_started/basics.rst#general-dataframe-combine

def combiner(x, y):
    np.where(pd.isna(x), y, x)
df1.combine(df2, combiner)

the code above should be:

def combiner(x, y):
    return np.where(pd.isna(x), y, x)
df1.combine(df2, combiner)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions