Skip to content

API: expected result for pow(1, pd.NA) or pow(pd.NA, 0) #29997

Closed
@TomAugspurger

Description

@TomAugspurger

Should pow(1, pd.NA) be 1 or NA?

In [1]: import pandas as pd

In [2]: 1 ** pd.NA
Out[2]: NA

In [3]: import numpy as np

In [5]: 1 ** np.nan
Out[5]: 1.0

cc @jorisvandenbossche

Metadata

Metadata

Assignees

No one assigned

    Labels

    Missing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateNumeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions