Enable element-wise comparison operations in DataMatrix objects · Issue #1 · pandas-dev/pandas (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

@wesm

Description

@wesm

re: pystatsmodels e-mail

hi everyone,

just getting started with pandas and i was wondering if someone could
help me out. do pandas.DataMatrix objects support per item comparison
operations?

i have a two data matrices, and i want to do something like this:

div[div > 0.5 * price] = 0

this would work if div and price were numpy.ndarray objects. any idea
how i would do something like this with pandas.DataMatrix objects?

thanks,
andy