How to make unpaired data in python
<p>My data is in this format</p>

<pre><code>ID         input_1         input_2
1          'hello'         'greeting'
2          'algorithm'     'computer science'
.             .               .
.             .               .
</code></pre>

<p>The input_1 and input_2 can be viewed as the pair data, is there a way or a library in python to shuffle them to make input_1 and input_2 are not paired? </p>

<p>I think you can use <a href="http://docs.scipy.org/doc/numpy/reference/generated/numpy.random.permutation.html" rel="nofollow"><code>numpy.random.permutation</code></a>:</p>

<pre><code>df.input_1 = np.random.permutation(df.input_1)
print (df)
   ID      input_1             input_2
0   1  'algorithm'          'greeting'
1   2      'hello'  'computer science'
</code></pre>

python pandas