May-13-2019, 09:36 AM
I am trying to change the name of my headers in my dataframe which include '\\PXI-PC\KWKK\PXI-PC\KWKK_sv\'.
I would like to remove this and replace it with nothing but keep getting 'SyntaxError: EOL while scanning string literal'
appreciate any help and also is there any way to just snip that part away rather than replace with nothing, can i even replace with nothing must something be entered?
I would like to remove this and replace it with nothing but keep getting 'SyntaxError: EOL while scanning string literal'
appreciate any help and also is there any way to just snip that part away rather than replace with nothing, can i even replace with nothing must something be entered?
df.columns = df.columns.str.replace('\\PXI-PC\KWKK\PXI-PC\KWKK_sv\' , '')thanks in advance