Have this data:
region gdp_per_capita
0 Coasts of USA 71 546
1 USA: New York, New Jersey 81 615
2 USA: California 74 205
3 USA: New England 74 000
Wanna get this:
region gdp_per_capita
0 Coasts of USA 71546
1 USA: New York, New Jersey 81615
2 USA: California 74205
3 USA: New England 74000
Tried to use df.columns = df.columns.str.replace(' ', ''), but it did not work