I have a dictionary. There are some space infant of keys. How I can remove all of these space and keep only one space infant of keys? I made the dictionary with the following code:
def get_JobAbbreviation_data():
data=pd.read_csv('A.csv')
data=data.replace(u'xa0', u'', regex=True)
data.dropna(inplace=True)
Title = data['FIRST'].str.lower()+' '
Abbr = data['1ST'].str.lower()+ ' '
JobAbbreviation=dict(zip(Abbr, Title))
return JobAbbreviation