The documentation for Series.str.replace says that it takes a "string or compiled regex" ... "String can be a character sequence or regular expression." ... "When repl is a string, every pat is ...
I instead have to do with_columns, with the expr for each pattern in a python for loop as a workaround. I also cannot put all the exprs in with_columns as i would get ...
指定した文字列を置換してくれるstr_replace()関数。この関数、全ての引数に文字列だけではなく配列も使用でき、とても便利です。ただ、便利だからとあんまり調子に乗ると・・・? 今回は、str_replace()関数の使用法と、その際のちょっとした注意点について ...