Open vishnu-dev opened 4 years ago
I'm not sure off the top of my head, but I think you can pass compiled regexp objects, which might do the trick?
@vishnu-dev I assume that this feature wouldn't be possible until there's an enhancement made in issue #22496.
Code Sample
Problem description
According to pandas docs for
DataFrame.replace
the replace has ability to take regex input, but doesn't have the ability to take in regex flags such asre.I
orre.IGNORECASE
for case insensitive search. Can we have a flags argument to take in regex module flags as input.Expected Output