First page Back Continue Last page Overview Image

Exercise

In the folder "data1", we have a file called programming_language_usage.txt with a ranking of programming languages by usage. The data has been collected and created by TIOBE in March 2017.

The file looks like this:

"Mar 2017" "Language" Percentage

1 Java 16.384%

2 C 7.742%

3 C++ 5.184%

4 C# 4.409%

5 Python 3.919%

6 Visual Basic .NET 3.174%

7 PHP 3.009%

8 JavaScript 2.667%

9 Delphi/Object Pascal 2.544%

The percentage column contains strings with a percentage sign. We can get rid of this when we read in the data with read_csv. All we have to do is define a converter function, which we to read_csv via the converters dictionary, which contains column names as keys and references to functions as values.

Plot the data with a bar chart!