remove control character whitespaces from dataframe
<p>I have a dataframe df by which I am getting list of list by using this</p>

<pre><code>data = [list(map(str,n.tolist())) for n in df.values]
</code></pre>

<p>after that I replace specific control character from data like this </p>

<pre><code>data = [ [e.replace(u'\xa0', u'') for e in tempval ] for tempval in data ]
</code></pre>

<p>This works fine but I want this to be done in dataframe itself  please suggest something.</p>