[ Log On ]
  • Home
  • Tst
  • Cha
  • Enc
  • Code
  • IP
  • Fun
  • Sub
  • DigF
  • Cis
  • Com
  • Db
  • About
  • Netsim
  • Big Data

Health Care in Scotland

 

[Back] Python Pandas outlines for data analysis for Health Care in Scotland. The data is [here][Pandas analysis].

Pandas axis

X-axis:

Y-axis:

Type:

View image [SVG] View image [PNG]

Source code

The following outlines the Python code used:

import numpy as np
import pandas as pd
import sys
import matplotlib.pyplot as plt

xval = 'Violent Crime';
yval = 'Murder';

file='1111'

ver=pd.read_csv("city.csv")

plt.xlabel(xval)
plt.ylabel(yval)

plt.scatter(ver[xval],ver[yval])
plt.show()

f2= file+".svg"

plt.savefig(f2,format='SVG')

f2= file+".png"

plt.savefig(f2,format='PNG')

Data

The data used is [here]


Outline