'No replacement done after , replace(u'\xa0', u' ', regex=True) in Pandas
I am trying to replace \xa0 with null in Pandas.
But No luck. How to get it right ?
Input:
{'Team': 'ABE', 'country': 'USA', 'region': '\xa0Texas'}
Code : df1['area'] = df1['area'].replace(u'\xa0', u' ', regex=True)
Output:{'Team': 'ABE', 'country': 'USA', 'region': '\xa0Texas'}
Expected_Output:{'Team': 'ABE', 'country': 'USA', 'region': 'Texas'}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
