sub/mul/div for Series does not accept scalar #2574

Closed
dalejung opened this Issue Dec 21, 2012 · 0 comments

Comments

Projects
None yet
2 participants
Contributor

dalejung commented Dec 21, 2012

import panda as pd

s = pd.Series(range(10))
s.sub(1)

# AssertionError: Other operand must be Series

df = pd.DataFrame({'test':s})
df.sub(1) # works

Am I misunderstanding or should scalars work with sub/mul/div/etc?

wesm closed this Dec 28, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment