title: Seaborn line graph for dataframe based on filters
body: <p>I hope to plot a line graph with the following conditions: Race == ALL, Year == 2020 for age group index 0 to 14 and columns 0 Child to 5 or more child.</p>
  <p>I have tried the following code but it does not work.</p>
  <pre><code>PopulationCensusCombined['Age Group'].iloc[0:15]
  ChildColumns = PopulationCensusCombined.columns[4:].to_list()
  PopulationCensusCombined[ChildColumns]
  PopulationCensusCombined.shape #output (150,10)
  
  sns.lineplot(
      data=PopulationCensusCombined.query((&quot;Race == 'ALL' &amp; Year==2020&quot;)),
      x = PopulationCensusCombined[ChildColumns],
      y=PopulationCensusCombined['Age Group'].iloc[0:15], 
      style=&quot;choice&quot;,
      palette=&quot;flare&quot;)
  </code></pre>
  <p>The following error was:</p>
  <p>ValueError: Length of DataFrame vectors must match length of <code>data</code> when both are used, but <code>data</code> has length 15 and the vector passed to <code>x</code> has length 150.</p>
  <p><a href="https://i.stack.imgur.com/x0oEV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x0oEV.png" alt="enter image description here" /></a></p>