Skip to content

Better handling of footnotes in columns #32

@prakaa

Description

@prakaa

Current handling of footnotes in column names could be improved.

At the moment, it's a one line regex:

columns = columns.str.replace(r"(?<=[^\s\d])\d$", "", regex=True)

This has some issues:

  1. Stripping 3 from Phase 3 as below (expected_closure_years)

image

  1. Foonote with space before isn't stripped (locational_cost_factors)
    image

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