odstranit více prostoru python
import re
re.sub(' +', ' ', 'The quick brown fox')
'The quick brown fox'
nahradí více mezer s jedním prostor python
' '.join(myString.split())
převod dvojité mezery int jeden prostory python
#converting double spaces into single spaces
df["combined"]=df["combined"].replace('\s+', ' ', regex=True)