title: TypeError: float() argument must be a string or a number, not 'tuple' matplotlib
body: <pre><code>import numpy as np 
  import matplotlib.pyplot as plt
  from matplotlib.offsetbox import OffsetImage, AnnotationBbox
  import itertools
  
  def get_flag(name):
      path = &quot;flags/flags/{}.png&quot;.format(name)
      im = plt.imread(path)
      return im
  
  def offset_image(name, xy, ax):
  
      xcor = (x_arg, x_australia, x_austria, x_bah, x_bang, x_bul, x_can, x_chile, x_col, x_cuba, x_cze, x_den,
              x_ecu, x_elsa, x_est, x_fin, x_gre, x_hun, x_india, x_indo, x_iran, x_ire, x_ita, x_jap, x_kaz, x_ken,
              x_kuw, x_latv, x_lith, x_lux, x_mal, x_mor, x_nz, x_nig, x_nor, x_pak, x_pan, x_peru, x_pol, x_qat, x_roman,
              x_rus, x_rwa, x_sau, x_serb, x_slova, x_slove, x_saf, x_skor, x_switz, x_turk, x_uga, x_ukr, x_uk, x_us)
  
      ycor = (y_arg, y_australia, y_austria, y_bah, y_bang, y_bul, y_can, y_chile, y_col, y_cuba, y_cze, y_den,
              y_ecu, y_elsa, y_est, y_fin, y_gre, y_hun, y_india, y_indo, y_iran, y_ire, y_ita, y_jap, y_kaz, y_ken,
              y_kuw, y_latv, y_lith, y_lux, y_mal, y_mor, y_nz, y_nig, y_nor, y_pak, y_pan, y_peru, y_pol, y_qat, y_roman,
              y_rus, y_rwa, y_sau, y_serb, y_slova, y_slove, y_saf, y_skor, y_switz, y_turk, y_uga, y_ukr, y_uk, y_us)
  
      xy=(xcor,ycor)
  
      img = get_flag(name)
      im = OffsetImage(img, zoom=0.72)
      im.image.axes = ax
  
      ab = AnnotationBbox(im, xy, frameon=False, xycoords='data', boxcoords=&quot;offset points&quot;, pad=0)
  
      ax.add_artist(ab)
  
  ax = df.plot(kind='scatter',x='% of Ages 65+',y='COVID Fatality Rate', title='Correlation between % of Ages 65+ and COVID Fatality Rate')
  
  for i, c in enumerate(df['Country']):
      offset_image(i, c, ax)
  
  plt.show()
  </code></pre>
  <p>How do I fix this? Help me out y'all:( TypeError: float() argument must be a string or a number, not 'tuple' I tried converting it into list but I can't split the list containing x and y coordinates:(</p>