Skip to content

Add optional feature to fill nulls in Arrow::Array#to_narray #3

Open
@mrkn

Description

@mrkn

Currently Arrow::Array#to_narray raises an error when the receiver array has nulls.
I'd like to make this method to fill all the nulls by a specific value.

My API proposal is here:

nary = ary.to_narray(fillna: 0)  # filling nulls by 0
nary = ary.to_narray(fillna: Float::NAN)  # filling nulls by NaN

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