API: expected result for pow(1, pd.NA) or pow(pd.NA, 0) (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

pandas-dev / pandas Public

Additional navigation options

New issue

New issue

Closed

#30097

Closed

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

#29997

#30097

Labels

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

Milestone

1.0.0

@TomAugspurger

Description

@TomAugspurger

TomAugspurger

opened

on Dec 3, 2019

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