0
The "strip" function removes the spaces on the left and right, but does not remove the spaces between the words:
raw_data = {'NAME': ['   José  Luiz   da   Silva   ']}
df = pd.DataFrame(raw_data, columns = ['NAME'])
df['NAME'] = df['NAME'].str.strip()