Skip to content

How many times does MaskedColumn need to be finalized? #6721

@taldcroft

Description

@taldcroft

I find this perplexing. I print a print statement in BaseColumn.__array_finalize__:

In [2]: c = Column([1,2], format='%d')
Finished array finalize (with copy attrs)

In [3]: c[:]
Finished array finalize (with copy attrs)
Out[3]: 
<Column dtype='int64' format='%d' length=2>
1
2

In [4]: c = MaskedColumn([1,2], format='%d')
Finished array finalize (with copy attrs)
Finished array finalize (with copy attrs)

In [5]: c[:]
Finished array finalize (with copy attrs)
Finished array finalize (with copy attrs)
Finished array finalize (with copy attrs)
Out[5]: Finished array finalize (with copy attrs)
Finished array finalize (with copy attrs)

<MaskedColumn dtype='int64' format='%d' length=2>
1
2

This came up in working on #6720.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions