Skip to content

vstack fails with numpy arrays for labels #55

@mabdelhack

Description

@mabdelhack

bdata/utils.py -> vstack function fails when the label data is numpy format.

Particularly the line [53] v += suc_cols[s] attempts to add the values instead of concatenating them vertically while the select line before it loads the data as unicode so it ends up throwing an error

UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U32'), dtype('<U32')) -> dtype('<U32')

Maybe using numpy vstack instead of list concatenation would be better?

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