Skip to content

Pandas returns 0/y=inf, even when y is a non-zero dataframe or series. #9286

Closed
@JohnNapier

Description

@JohnNapier

Pandas returns the wrong result for the operation 0/y where y is a dataframe or series of non-zero values:

import pandas as pd
y=pd.Series(range(1,10))
print 0/y # wrong

However, this operation would work:

for i in y:print 0/i # correct

I'm using Pandas 0.15.2-1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDuplicate ReportDuplicate issue or pull requestNumeric OperationsArithmetic, Comparison, and Logical operations

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions