print "Stuff!!!"
x = 0
y = 3
d = x*x + y*y
print x, d
x = 4
print x, d
x = 2
X = 3
print x,X
%ls
!ls
!echo boo
!ls data
!head data/inflammation-01.csv
import numpy
numpy.loadtxt(fname='data/inflammation-01.csv')
numpy.loadtxt(fname='data/inflammation-01.csv', delimiter=',')
data = numpy.loadtxt(fname='data/inflammation-01.csv', delimiter=',')
data
print data
print data[0, 0]
print data[0, 2]
print data[1, 2]
print data[1][2]
print data[1]
print data[1, :]
print data[:, 1]
print data.shape
print data[30, 20]
print data[:, 3:5].shape
print data[4:6, 1:10]
number_of_rows = data.shape[0]
print number_of_rows
print data[number_of_rows - 1, 5:10]
print data[-1, 5:10]
data.diagonal()
print data[:, 5:10].shape
print data[0:, 5:10].shape
print data[0:-1, 5:10].shape
print data[:-1, 5:10].shape
print data[0:3, 5:10]
print data[:3, 5:10]
print data[:3, 5:10:1]
print data[:3, 5:10:2]
numpy.sort( data[0] )
data[0]
data[0] = numpy.sort(data[0])
data[0]
print data == 1
print (data == 1).shape
data
numpy.sum( data == 1 )
is_one = (data == 1)
print numpy.sum(is_one)
print is_one.sum()
print numpy.transpose(data).shape
print data.sum()
print data.mean()
print data.min()
print data.max()
print data
print data.max(axis=1)
print data.max(axis=1).shape
print data.mean(axis=0)
%matplotlib inline
import matplotlib.pyplot
image = matplotlib.pyplot.imshow(data, interpolation='nearest')
matplotlib.pyplot.show(image)
import matplotlib.pyplot as plt
import numpy as np
avg_inflammation = data.mean(axis=0)
print avg_inflammation.shape
avg_plot = plt.plot(avg_inflammation)
plt.show(avg_plot)
min_plot = plt.plot(data.min(axis=0))
plt.show(min_plot)
element = "hello"
print "|||"+element[3:3]+"|||"
data[3:3, 4:4]
data[3:3, :]
np.unravel_index(np.argmax(data), data.shape)