Skip to content

Instantly share code, notes, and snippets.

View andersonberg's full-sized avatar

Anderson Berg andersonberg

View GitHub Profile
>>> a.shape = (2,6)
>>> a
array([[ 0, 1, 2, 3, 4, 5],
[ 6, 7, 8, 9, 10, 11]])
>>> a.shape
(3,4)
>>> x = np.arange(10, 30, 5) #(limite inferior, limite superior, passo)
array([10, 15, 20, 25])
>>> x = np.arange(11.)
array([ 0., 1., 2., 3., 4., 5., 6., 7., 8., 9., 10.])
>>> a = np.array([[0,1,2,3], [4,5,6,7], [8,9,10,11]])
>>> a = np.array([0,1,2,3,4,5])
>>> a
array([0,1,2,3,4,5])
>>> import numpy as np
colunas = soup.find(id="glb-area-colunas")
linkscol = colunas.findAll('a')
for link in linkscol:
print link['href']