-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Closed
Labels
API DesignEnhancementNA - MaskedArraysRelated to pd.NA and nullable extension arraysRelated to pd.NA and nullable extension arraysNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Description
Is your feature request related to a problem?
I found that:
pd.NA ** 0 # The result is 1
pd.NA * 0 # The result is pd.NADescribe the solution you'd like
Personally, I think the pow and mul method shoulds be consistent. The results should be both NA or both numbers.
Solution 1:
pd.NA ** 0 # The result is pd.NA
pd.NA * 0 # The result is pd.NASolution 2:
pd.NA ** 0 # The result is 1
pd.NA * 0 # The result is 0PS: I assume the pd.NA is not infinite.
Metadata
Metadata
Assignees
Labels
API DesignEnhancementNA - MaskedArraysRelated to pd.NA and nullable extension arraysRelated to pd.NA and nullable extension arraysNeeds DiscussionRequires discussion from core team before further actionRequires discussion from core team before further actionNumeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations