1

I'm calling a lambda function getIDfromURL that takes around 1 hour to complete, as the dataframe contains almost one million lines. How can I monitor the progress of this lambda function?

df1['ID'] = df1.apply(lambda row: self.getIDfromURL(row['trade']), axis=1)

def getIDfromURL(self, URL):
       f = requests.get(URL)
       text=f.text
       temp=text[text.index("ID") + 10:]
       end=temp.index("\r\n")
       ID=temp[0:end-1]
       ID=ID.replace('"', '')
       return (ID)
Nickpick
  • 6,163
  • 16
  • 65
  • 116

0 Answers0