I have a numpy ndarray with 6 elements:
['\tblah blah' '"""123' 'blah' '"""' '\t456' '78\t9']
I am trying to replace all tab characters \t
with 4 spaces each so that the numpy array would now be:
[' blah blah' '"""123' 'blah' '"""' ' 456' '78 9']
I have considered re.sub but cannot figure out how to implement it when it comes down to an numpy ndarray. Any suggestions/help please?