Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

I have data which is being accessed via http request and is sent back by the server in a comma separated format, I have the following code : site= '' hdr = {'User-Agent': 'Mozilla/5.0'} req = urllib2.Request(site,headers=hdr) page = urllib2.urlopen(req) soup = BeautifulSoup(page) soup = soup.get_text() text=str(soup) The ...

  • 0

I’m trying to read a .csv file into Python (Spyder) but I keep getting an error. My code: import csvdata = open("C:UsersmicheDocumentsschooljaar2MIK2.6vektis_agb_zorgverlener") data = csv.reader(data) print(data) I get the following error: SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated ...