I have dates in the form given below:
"1###-##-##" here # denote uncertainty. e.g.
"1###-##-##" denotes (1000-00-00 to 1999-12-31)
"-138 - ## - ##" denotes (0138-01-01 BC, 0138-12-31 BC)
"18##-##-##" denotes (1800-01-01, 1899-12-31)
"1713-##-##" denotes (1713-01-01, 1713-12-31)
"####-##-##" denotes (0001-01-01, 9999-12-31)
I tried to achieve this conversion by using specific switch cases which did not turn out to be efficient. Is there some other means in python by which I may achieve this?
Here below zero values are converted to BC
EDIT: My desired output is given a pattern like "1###-##-##" find out the minimum and maximum range