title: Python - Categorical variable bar chart with percentages
body: <p>I'm trying to produce a bar chart to show the percentage of "Male","Female", and "different identity". So, I would like to have Male, Female, and Different Identity appear on the x axis and the percentage on the y axis.</p>
  
  <p>This is my current code which I sourced from somewhere else</p>
  
  <p>sns.barplot(x=ds.Gender, y=x, data = ds, estimator=lambda x: len(x) / len(ds) *100)</p>
  
  <p>Currently, I get the output</p>
  
  <p><strong>"Neither the <code>x</code> nor <code>y</code> variable appears to be numeric."</strong></p>
  
  <p>I've tried to make the 'y' variable something numeric, but I have failed to do so. I've looked at countless other questions but couldn't implement them. </p>
  
  <p>Any help would be much appreciated. </p>
  
  <p><a href="https://i.stack.imgur.com/HtNfL.jpg" rel="nofollow noreferrer">example of data frame</a></p>