Created 2 years ago
Original Dataset: Baby Names from Social Security Card Applications
Database of all names of registered babies at birth in the United States of America between 1880 and 2021
→ Administrative necessities
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib.patheffects as pe
import numpy as np
from urllib.request import urlopen
from IPython.display import display
from urllib.request import urlretrieve
from zipfile import ZipFile
import random
from wordcloud import WordCloud
pd.options.display.float_format = '{:.0f}'.format
%matplotlib inline
import matplotlib as mpl
urlretrieve
[source: docs]
- The
urllib.request
module defines functions and classes which help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, cookies and more. urllib.request.urlretrieve(url, filename=None, reporthook=None, data=None)
Copy a network object denoted by a URL to a local file. If the URL points to a local file, the object will not be copied unless filename is supplied. Return a tuple (filename, headers) where filename is the local file name under which the object can be found, and headers is whatever the info() method of the object returned by urlopen() returned (for a remote object).