Skip to content

DOC/API: document how to use metadata #8572

Open
@jreback

Description

@jreback

from SO
xref #2485
xref #7868

  • documentation (maybe in the cookbook) to start.
  • add _metadata to Index
  • top-level metadata control (maybe)
def unit_meta(self, other, method=None):
     # combine and return a new unit for this

      if self.unit == other.unit:
          return self.unit

      # coerce unit
      return coerced_unit

pd.set_metadata({ 'unit' : unit_meta })

This last will require a bit of change in __finalize__ to handle a metadata finalizer for a specific name (but straightforward)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions