Skip to content

New method: cf.Field.filledΒ #811

@davidhassell

Description

@davidhassell

It would be useful to provide the filled method to Field objects - it is currently only defined on cf.Data (https://ncas-cms.github.io/cf-python/method/cf.Data.filled.html).

So, currently, to fill a field's missing values no in-place you have to do something like

>>> g = f.copy()
>>> g.data.filled(0, inplace=True)

but it would be much nicer to be able to do, with the same result:

>>> f.filled(0, inplace=True)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions