The error means that you're passing the wrong type.
A guess, assuming this is pyplot, the bar command has the arguments:
left, height, width=0.8, bottom=None, hold=None, **kwargs
You're passing an array of strings for 'left' but you need an array of scalar numeric types there. 'left' is not label, it's coordinate.