title: ValueError: Could not interpret input '0' with Seaborn?
body: <p>I'm using the <a href="https://www.kaggle.com/datasets/keplersmachines/kepler-labelled-time-series-data?select=exoTrain.csv" rel="nofollow noreferrer">Kepler exoplanet dataset.</a></p>
  <p>After loading it, and running a simple transpose() on it, in order to get the rows as columns, I try a seaborn boxplot, as follows:
  <a href="https://i.stack.imgur.com/WLGCA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WLGCA.png" alt="enter image description here" /></a></p>
  <pre><code>sns.boxplot(data=df_train.tail(3197), x='0')
  </code></pre>
  <p>This returns:</p>
  <pre><code>---------------------------------------------------------------------------
  ValueError                                Traceback (most recent call last)
  Input In [45], in &lt;module&gt;
  ----&gt; 1 sns.boxplot(data=df_train.tail(3197), x='0')
  
  File c:\users\marti\appdata\local\programs\python\python39\lib\site-packages\seaborn\_decorators.py:46, in _deprecate_positional_args.&lt;locals&gt;.inner_f(*args, **kwargs)
       36     warnings.warn(
       37         &quot;Pass the following variable{} as {}keyword arg{}: {}. &quot;
       38         &quot;From version 0.12, the only valid positional argument &quot;
     (...)
       43         FutureWarning
       44     )
       45 kwargs.update({k: arg for k, arg in zip(sig.parameters, args)})
  ---&gt; 46 return f(**kwargs)
  
  File c:\users\marti\appdata\local\programs\python\python39\lib\site-packages\seaborn\categorical.py:2243, in boxplot(x, y, hue, data, order, hue_order, orient, color, palette, saturation, width, dodge, fliersize, linewidth, whis, ax, **kwargs)
     2231 @_deprecate_positional_args
     2232 def boxplot(
     2233     *,
     (...)
     2240     **kwargs
     2241 ):
  -&gt; 2243     plotter = _BoxPlotter(x, y, hue, data, order, hue_order,
     2244                           orient, color, palette, saturation,
     2245                           width, dodge, fliersize, linewidth)
     2247     if ax is None:
     2248         ax = plt.gca()
  
  File c:\users\marti\appdata\local\programs\python\python39\lib\site-packages\seaborn\categorical.py:406, in _BoxPlotter.__init__(self, x, y, hue, data, order, hue_order, orient, color, palette, saturation, width, dodge, fliersize, linewidth)
      402 def __init__(self, x, y, hue, data, order, hue_order,
      403              orient, color, palette, saturation,
      404              width, dodge, fliersize, linewidth):
  --&gt; 406     self.establish_variables(x, y, hue, data, orient, order, hue_order)
      407     self.establish_colors(color, palette, saturation)
      409     self.dodge = dodge
  
  File c:\users\marti\appdata\local\programs\python\python39\lib\site-packages\seaborn\categorical.py:153, in _CategoricalPlotter.establish_variables(self, x, y, hue, data, orient, order, hue_order, units)
      151     if isinstance(var, str):
      152         err = &quot;Could not interpret input '{}'&quot;.format(var)
  --&gt; 153         raise ValueError(err)
      155 # Figure out the plotting orientation
      156 orient = infer_orient(
      157     x, y, orient, require_numeric=self.require_numeric
      158 )
  
  ValueError: Could not interpret input '0'
  </code></pre>
  <p>I also attempted this:</p>
  <pre><code>sns.boxplot(df_train.tail(3197)['0'])
  </code></pre>
  <p>and got a <code>KeyError: '0'</code> instead. What am I doing wrong? As far as I can tell, I'm doing the exact same thing as the first example on the official Seaborn website, <a href="https://seaborn.pydata.org/generated/seaborn.boxplot.html" rel="nofollow noreferrer">here.</a></p>