S
S
sound9012018-11-06 19:26:56
Python
sound901, 2018-11-06 19:26:56

How to remove a paragraph character?

There is an excel file, there are keys in one column, and there can be several keys in one line (see screenshot 1). Excel is converted to csv and such values ​​are inserted into the database (see screenshot 2). How to replace ¶ with ";" For example?
5be1c0b749556611300793.png5be1be01bb023674091620.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-11-06
@sergey-gornostaev

str = '1.2.2¶1.2.3'
sanitized = str.replace('¶', ';')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question