In [3]:
import pandas as pd
import io
import requests
url="https://raw.githubusercontent.com/cs109/2014_data/master/countries.csv"
s=requests.get(url).content
c=pd.read_csv(io.StringIO(s.decode('utf-8')))

# example from: https://stackoverflow.com/questions/32400867/pandas-read-csv-from-url
In [8]:
c
Out[8]:
Country Region
0 Algeria AFRICA
1 Angola AFRICA
2 Benin AFRICA
3 Botswana AFRICA
4 Burkina AFRICA
... ... ...
189 Paraguay SOUTH AMERICA
190 Peru SOUTH AMERICA
191 Suriname SOUTH AMERICA
192 Uruguay SOUTH AMERICA
193 Venezuela SOUTH AMERICA

194 rows × 2 columns

In [5]:
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
%matplotlib inline
In [6]:
!free
              total        used        free      shared  buff/cache   available
Mem:        2041052     1032116       77480        2036      931456      834604
Swap:       4194300       29100     4165200
In [7]:
!df
Filesystem     1K-blocks     Used Available Use% Mounted on
udev             1007500        0   1007500   0% /dev
tmpfs             204108      640    203468   1% /run
/dev/vda1       50633164 18226064  32390716  37% /
tmpfs            1020524        0   1020524   0% /dev/shm
tmpfs               5120        0      5120   0% /run/lock
tmpfs            1020524        0   1020524   0% /sys/fs/cgroup
/dev/vda15        106858     3668    103190   4% /boot/efi
tmpfs             204104        0    204104   0% /run/user/112
tmpfs             204104        0    204104   0% /run/user/1000
In [ ]: