write a function called create_bar_plot that takes two arguments, 1) a matplotlib Axes object and 2) a dictionary. The function should call the bar method on the Axes object with the relevant arguments to make it work. Remember to convert the values from strings to numbers before plotting (and note that Python cannot deal with the thousands separator (comma) when converting strings to floating point numbers)

I have a dictionary of data that looks like this:

{'Road': '2,910', 'Rail': '930', 'Water': '5,540', 'Air': '15'}

This just seems like a homework assignment posted with no context. Can you show us what you have so far and what you're stuck on, what isn't working, or where you need help?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.