title: Plotting box plots of two columns side by side in seaborn
body: <p>I would like to plot two columns of a pandas dataframe as side by side box plots by category. This is not the same as the question presented in here: <a href="https://stackoverflow.com/questions/39344167/grouped-boxplot-with-seaborn">Grouped boxplot with seaborn</a> where the two columns have lists inside them. The solution there did not work for me.</p>
  
  <h1>MWE</h1>
  
  <pre><code>import seaborn as sns
  import pandas as pd
  import matplotlib.pyplot as plt
  df = pd.DataFrame(
  [
  [2, 4, "A"],
  [4, 5, "C"],
  [5, 4, "B"],
  [10, 4.2, "A"],
  [9, 3, "B"],
  [3, 3, "C"]
  ], columns=['data1', 'data2', 'Categories'])
  
  #Plotting by seaborn
  fig, axs = plt.subplots(1, 1)
  sns.boxplot(data=df,x="Categories",y='data1',ax=axs)
  fig.show()
  plt.waitforbuttonpress()
  plt.close(fig)
  </code></pre>
  
  <hr>
  
  <p>The code above generates:
  <a href="https://i.stack.imgur.com/G0wg5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G0wg5.png" alt="enter image description here"></a></p>
  
  <p>Replacing "data1" with "data2" in the boxplot line would give:
  <a href="https://i.stack.imgur.com/NSofE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NSofE.png" alt="enter image description here"></a></p>
  
  <p>What I want is something like this:
  <a href="https://i.stack.imgur.com/vK3Uy.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vK3Uy.png" alt="enter image description here"></a></p>