Find and replace strings in Excel (.xlsx) using Python

后端 未结 4 1414
没有蜡笔的小新
没有蜡笔的小新 2021-01-07 02:00

I am trying to replace a bunch of strings in an .xlsx sheet (~70k rows, 38 columns). I have a list of the strings to be searched and replaced in a file, formatted as below:-

4条回答
  •  感动是毒
    2021-01-07 02:48

    Similar idea to @coder_A 's, but use a dictionary to do the "translation" for you, where the keys are the original words and the value for each key is what it gets translated to.

提交回复
热议问题