Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better handling of footnotes in columns #32

Open
prakaa opened this issue Sep 5, 2024 · 0 comments
Open

Better handling of footnotes in columns #32

prakaa opened this issue Sep 5, 2024 · 0 comments
Labels
enhancement New feature or request low priority

Comments

@prakaa
Copy link
Member

prakaa commented Sep 5, 2024

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
@prakaa prakaa added enhancement New feature or request low priority labels Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

1 participant