title: 'numpy.ndarray' object has no attribute 'set_xlabel'
body: <pre><code>import pandas as pd
  import numpy as np
  import matplotlib.pyplot as plt
  
  #reading data
  data = pd.read_csv('Malicious_or_criminal_attacks_breakdown-Top_five_industry_sectors_July-Dec-2019.csv',index_col=0,engine='python')
  df = pd.DataFrame(data)
  
  
  #df list for data
  df.values.tolist()
  
  #construction of group bar chart
  labels = ('Cyber incident', 'Theft of paperwork or data storagedevice', 'Rogue employee', 'Social engineering / impersonation')
  colors = ['red', 'yellow', 'blue', 'green']
  data = df.values.tolist()
  arr = np.array(data)
  
  
  n_groups, n_colors = arr.shape
  width = 0.2
  x_pos = np.arange(n_colors)
  
  fig, ax = plt.subplots(nrows=1, ncols=2, figsize=(14, 5), dpi=100)
  for i in range(n_groups):
      plt.bar(x_pos + i*width, arr[i, :], width, align='center', label=labels[i], color=colors[i])
  ax.set_xlabel(&quot;the top five industry sectors&quot;)
  ax.set_ylabel(&quot;Number of attack&quot;)
  ax.set_title(&quot;Type of attack by top five industry sectors&quot;)
  
  ax.set_xticks(x_pos+width/2)
  ax.set_xticklabels(colors)
  
  ax.legend()
  </code></pre>
  <p>Can anyone tell me what im doing wrong here and why numpy isnt working as expected.Ive looked at documantation for hours and cant figure out whats wrong</p>