python suppress warnings in function

import warnings

Here is what the above code is Doing:
1. Importing the required libraries
2. Reading the dataset
3. Creating a list of all the unique words in the dataset
4. Creating a dictionary that maps every word to its number of occurrences
5. Sorting the words according to the number of occurrences in descending order
6. Plotting a bar graph of the top 20 most frequent words