title: Cleaning Tweets (a column fom a dataframe)
body: <p>I'm trying to clean data from a pandas data frame (df) where I want to remove all ?!'//https etc from the column. I'm now trying to run it like this, but it does strange things to my list of data.</p>
  <p>Does anyone know how I improve my data clean function?</p>
  <pre><code>def clean_tweets(tweet):
  ' '.join(re.sub(&quot;(https?:((//)|(\\\\))+([\w\d:#@%/;$()~_?\+-=\\\,.&amp;](#!)?)*)&quot;,&quot;XXX&quot;, tweet).split())
  print(tweet)
  return tweet
  </code></pre>