I have a large dataset with rows of wildcarded strings e.g.
8145[012]
8146[01234]
8147[0134567]
I would like an efficient way to expand these out into unique rows for each combination, e.g.
81450
81451
81452
81460
81461
81462
etc...
What is the most efficient way to do this in Python 3.7?