[Tutor] Parsing and collecting keywords from a webpage

2018-06-20 Thread Daniel Bosah
# coding: latin-1 from bs4 import BeautifulSoup from urllib.request import urlopen import re #new point to add... make rest of function then compare a list of monuments notaries ( such as blvd, road, street, etc.) to a list of words containing them. if contained, pass into new set ( ref notes in c

[Tutor] adding numpy to pandas

2018-06-20 Thread Glenn Schultz
All, I have a pandas dataframe and a predict result (numpy array) of a classifier [[0,1],[1,0]].  What I would like to do is as the positive to the pandas dataframe.  I use predict[:,1] to slice the postive from numpy which gives me a row of the result.  but I cannot concat to the pandas df['r

Re: [Tutor] Parsing and collecting keywords from a webpage

2018-06-20 Thread Alan Gauld via Tutor
On 20/06/18 20:32, Daniel Bosah wrote: > # coding: latin-1 > from bs4 import BeautifulSoup > from urllib.request import urlopen > import re > > #new point to add... make rest of function then compare a list of monuments > notaries ( such as blvd, road, street, etc.) to a list of words containing >