Pandas returns 0/y=inf, even when y is a non-zero dataframe or series. (original) (raw)
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.