I want to format the numbers on the y-axis so they look like dollar amounts? e.g. $200 instead of just 200.
ticks = graph.get_yticks()
labels=['${}'.format(int(amt)) for amt in ticks]
graph.set_yticks(labels)
Getting below error.Thanks in advance.
ConversionError: Failed to convert value(s) to axis units: ['$125', '$150', '$175', '$200', '$225', '$250', '$275', '$300', '$325']