Skip to content

Enable element-wise comparison operations in DataMatrix objects #1

Closed
@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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions