Skip to content

Support for np.str_ types #2800

@IvoDD

Description

@IvoDD

Describe the bug

ArcticDB doesn't support np.str_ types inside dataframes or series.

Steps/Code to Reproduce

df = pd.DataFrame({"col": [np.str_("asdf")]})
lib.write("sym", df)

Produces a:

ArcticDbNotYetImplemented: Not supported: normalizing, symbol: sym, Reason: Failed to normalize column 'col' with dtype 'object'. Found first non-null value of type '<class 'numpy.str_'>', but only strings, unicode, and Timestamps are supported. Do you have mixed dtypes in your column?, Setting the pickle_on_failure parameter to True will allow the object to be written. However, many operations (such as date_range filtering and column selection) will not work on pickled data.

Expected Results

Successfully writes the np.str_ type

OS, Python Version and ArcticDB Version

Python 3.11

Backend storage used

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions