Bottom Page

Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Dataframe error help
Hi anyone can help me this error problem im having this error" Dataframe object has no attribute irow" what would be the solution getting the error on line 3 and line 27

def readExcel(index):
   global sheet
   if str(row[4])=='nan':
   return row[3]+" "+row[4]+" "+row[5],row[1],row[4],row[3]+" "+row[5],row[2],row[1]

session = requests.Session()
html = session.get(LINKEDIN_URL).content
soup = BeautifulSoup(html,'html5lib')
csrf = soup.find(id="loginCsrfParam-login")['value']

login_information = {
   'loginCsrfParam': csrf,

headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:31.0) Gecko/20100101 Firefox/31.0'}, headers=headers, data=login_information)
device= build("customsearch","v1",developerKey="API_KEY_REMOVED") 

for j in range(Start_Index,Last_Index):
   print j

       results=device.cse().list(q=r+" "+c,num=1,cx='009259153963367271982:fkxfnawlcn4').execute()   # cx: 018365894794576624310:ubawqf09zme      ,       005187750176123224094:h3ylihk-rmi
       #print results
       #print link
       if j==37:
   except  Exception as e:
       print 'Error:',
       print e
What are the imports?
Unless noted otherwise, code in my posts should be understood as "coding suggestions", and its use may require more neurones than the two necessary for Ctrl-C/Ctrl-V.
Your one-stop place for all your GIMP needs:
hi ofNuts here are imports

import pandas
from bs4 import BeautifulSoup
import re
import requests
from sys import *
from googleapiclient.discovery import build
from openpyxl import load_workbook #VERSION 1.8.5 ONLY
import xlsxwriter
import fuzzy

Top Page

Forum Jump:

Users browsing this thread: 1 Guest(s)