Learn practical skills, build real-world projects, and advance your career
from urllib.request import urlretrieve
italy_covid_url = 'https://gist.githubusercontent.com/aakashns/f6a004fa20c84fec53262f9a8bfee775/raw/f309558b1cf5103424cef58e2ecb8704dcd4d74c/italy-covid-daywise.csv'

urlretrieve(italy_covid_url, 'italy-covid-daywise.csv')
('italy-covid-daywise.csv', <http.client.HTTPMessage at 0x7f94cc74aac0>)
!pip install pandas as pd
Requirement already satisfied: pandas in /opt/conda/lib/python3.9/site-packages (1.2.5) Collecting as Downloading as-0.1-py3-none-any.whl (2.2 kB) Collecting pd Downloading pd-0.0.1.tar.gz (5.3 kB) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.9/site-packages (from pandas) (2.8.1) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.9/site-packages (from pandas) (2021.1) Requirement already satisfied: numpy>=1.16.5 in /opt/conda/lib/python3.9/site-packages (from pandas) (1.21.0) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.9/site-packages (from python-dateutil>=2.7.3->pandas) (1.16.0) Building wheels for collected packages: pd Building wheel for pd (setup.py) ... done Created wheel for pd: filename=pd-0.0.1-py3-none-any.whl size=6504 sha256=60867b72af36c1fde6ecdefd6e1d52a4c726d1fc63d5c4fbdd1ad65274d0e8ab Stored in directory: /home/jovyan/.cache/pip/wheels/10/b3/5d/101c0f6b9b7ec5d08261cc8d08731049fa0d39ed46f2ed7661 Successfully built pd Installing collected packages: pd, as Successfully installed as-0.1 pd-0.0.1
import pandas as pd
covid_df = pd.read_csv('italy-covid-daywise.csv')