Learn practical skills, build real-world projects, and advance your career
Updated 4 years ago
import jovian
jovian.commit(project='pandas-practice-assignment', environment=None)
[jovian] Attempting to save notebook..
[jovian] Please enter your API key ( from https://jovian.ml/ ):
API KEY: ········
[jovian] Creating a new project "aji-rajeem/pandas-practice-assignment"
[jovian] Uploading notebook..
[jovian] Committed successfully! https://jovian.ml/aji-rajeem/pandas-practice-assignment
# Run the next line to install Pandas
!pip install pandas --upgrade
Collecting pandas
Downloading pandas-1.1.2-cp37-cp37m-manylinux1_x86_64.whl (10.5 MB)
|████████████████████████████████| 10.5 MB 5.1 MB/s eta 0:00:01 |██████ | 1.9 MB 5.1 MB/s eta 0:00:02
Collecting pytz>=2017.2
Downloading pytz-2020.1-py2.py3-none-any.whl (510 kB)
|████████████████████████████████| 510 kB 31.2 MB/s eta 0:00:01
Requirement already satisfied, skipping upgrade: python-dateutil>=2.7.3 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from pandas) (2.8.1)
Collecting numpy>=1.15.4
Downloading numpy-1.19.2-cp37-cp37m-manylinux2010_x86_64.whl (14.5 MB)
|████████████████████████████████| 14.5 MB 27.4 MB/s eta 0:00:01
Requirement already satisfied, skipping upgrade: six>=1.5 in /srv/conda/envs/notebook/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas) (1.15.0)
Installing collected packages: pytz, numpy, pandas
Successfully installed numpy-1.19.2 pandas-1.1.2 pytz-2020.1
import pandas as pd
from urllib.request import urlretrieve
urlretrieve('https://hub.jovian.ml/wp-content/uploads/2020/09/countries.csv',
'countries.csv')
('countries.csv', <http.client.HTTPMessage at 0x7ff719a08050>)