How can I change the format of the numbers in the x-axis to be like 10,000 instead of 10000? Ideally, I would just like to do something like this:<
10,000
10000
x = [10000.21, 22000.32, 10120.54]
Perhaps make a list (comprehension) for the labels, and then apply them "manually".
xlables = [f'{label:,}' for label in x] plt.xticks(x, xlabels)