Learn practical skills, build real-world projects, and advance your career
!pip install jovian --upgrade -q
import jovian

jovian.commit(project='pandas-practice-assignment', environment=None)
WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available. You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.
[jovian] Attempting to save notebook.. [jovian] Detected Kaggle notebook... [jovian] Uploading notebook to https://jovian.ml/anoopsathyaseelan/pandas-practice-assignment
!pip install pandas --upgrade

import pandas as pd
Requirement already up-to-date: pandas in /opt/conda/lib/python3.7/site-packages (1.1.2) Requirement already satisfied, skipping upgrade: python-dateutil>=2.7.3 in /opt/conda/lib/python3.7/site-packages (from pandas) (2.8.1) Requirement already satisfied, skipping upgrade: numpy>=1.15.4 in /opt/conda/lib/python3.7/site-packages (from pandas) (1.18.5) Requirement already satisfied, skipping upgrade: pytz>=2017.2 in /opt/conda/lib/python3.7/site-packages (from pandas) (2019.3) Requirement already satisfied, skipping upgrade: six>=1.5 in /opt/conda/lib/python3.7/site-packages (from python-dateutil>=2.7.3->pandas) (1.14.0) WARNING: You are using pip version 20.2.2; however, version 20.2.3 is available. You should consider upgrading via the '/opt/conda/bin/python3.7 -m pip install --upgrade pip' command.
from urllib.request import urlretrieve

urlretrieve('https://hub.jovian.ml/wp-content/uploads/2020/09/countries.csv', 
            'countries.csv')
countries_df = pd.read_csv('countries.csv')
countries_df
num_countries = countries_df.shape
print('There are {} countries in the dataset'.format(num_countries))
There are (210, 6) countries in the dataset
jovian.commit(project='pandas-practice-assignment', environment=None)
[jovian] Attempting to save notebook.. [jovian] Detected Kaggle notebook... [jovian] Uploading notebook to https://jovian.ml/anoopsathyaseelan/pandas-practice-assignment