title: Shuffle one column in pandas dataframe
body: <p>How does one shuffle only one column of data in pandas?</p>
  
  <p>I have a Dataframe with production data that I want to load onto dev for testing.  However, the data contains personally identifiable information so I want to shuffle those columns.</p>
  
  <p>Columns: FirstName LastName Birthdate SSN OtherData</p>
  
  <p>If the original dataframe is created by read_csv and I want to translate the data into a second dataframe for sql loading but shuffle first name, last name, and SSN, I would have expected to be able to do this:</p>
  
  <pre><code>if devprod == 'prod':
      #do not shuffle data
      df1['HS_FIRST_NAME'] = df[4]
      df1['HS_LAST_NAME'] = df[6]
      df1['HS_SSN'] = df[8]
  else:
      df1['HS_FIRST_NAME'] = np.random.shuffle(df[4])
      df1['HS_LAST_NAME'] = np.random.shuffle(df[6])
      df1['HS_SSN'] = np.random.shuffle(df[8])
  </code></pre>
  
  <p>However, when I try that I get the following error:</p>
  
  <p><strong>A value is trying to be set on a copy of a slice from a DataFrame</strong></p>