In [1]:
import pandas as pd
In [2]:
url = "https://gist.githubusercontent.com/hunterowens/10649493/raw/5c430952728e92db657fd34b73db306524ac88ac/renmin.csv"
data = pd.read_csv(url)
In [3]:
data.head(5)
Out[3]:
type_of_connection ping download upload
0 CMCC Paid China Moible 0 26.35 32.360
1 Renmin WIFI 16 6.24 1.590
2 Personal WIFI 2 42.96 49.020
3 Personal WIFI+cVPN 453 1.01 0.007
4 Personal WIFI+OpenVPN/Digital Ocean 443 0.05 0.330

5 rows × 4 columns

In [4]:
download_speed = data.ix[0:2].set_index('type_of_connection').download                                  
In [11]:
dplot = download_speed.plot(kind="bar")
dplot.set_ylabel("Download Speed (Mbps)")
Out[11]:
<matplotlib.text.Text at 0x107fd0a50>
In [12]:
upload_speed = data.ix[0:2].set_index('type_of_connection').upload
uplot = upload_speed.plot(kind="bar")
uplot.set_ylabel("Upload Speed (Mbps)")
Out[12]:
<matplotlib.text.Text at 0x10801b0d0>
In [13]:
vpn_download = data.ix[3:5].set_index('type_of_connection').download
vpndp = vpn_download.plot(kind="bar")
vpndp.set_ylabel("Download Speed (Mbps)")
Out[13]:
<matplotlib.text.Text at 0x108017a10>
In [14]:
ping = data.set_index('type_of_connection').ping
ping_plot = ping.plot(kind="bar")
ping_plot.set_ylabel("Time ms")
Out[14]:
<matplotlib.text.Text at 0x10800d590>
In [ ]: