Skip to content

Quickly showing a subset of columns #2438

Answered by cool-RR
cool-RR asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks @frosencrantz . If your instruction list was half the size it currently is, it would still be too long for me.

I think my best solution right now is to use this script of mine below. It basically compresses your seven steps into one. I would still like something faster than that, since typing a regex (or looking through history) is a bit cumbersome, but I've given up on working on that for now.

def _filter_columns_by_regex(sheet: Sheet, regex_string: str, *,
                             always_include_keys: bool = False) -> tuple[list[Column],
                                                                         list[Column]]:
    regex_flags = sum(getattr(re, f.upper()) for f in 

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@cool-RR
Comment options

Answer selected by cool-RR
@frosencrantz
Comment options

@cool-RR
Comment options

Comment options

You must be logged in to vote
1 reply
@cool-RR
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants