Skip to content

DataMatrix constructor ignores dtype argument if data is a DataMatrix #7

Closed
@andylei

Description

@andylei
>>> a = DataMatrix([[1.0,2.0,3.0],[4.0,5.0,6.0]], range(2), range(3))
>>> b = DataMatrix(a, dtype=int)
>>> b.values.dtype
dtype('float64')

Not sure if this was a design decision or not, but it seems like the dtype of b.values should be int.

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