0

I have a data frame like this:

ServerName  Env id       Token      ServerId
web102     Prod 12345   token123    100
web104     Test 5678    token678    200
db03       Lab  5790    token05556  300

I need to go though each row at a time, each row has value for the url. I need to build the url from values from each row.

For example:

for each row:
    processUrl="https://example.com/{id}/api/v2/entities/{ServerId}"?from=now-24h&to=now&fields=toRelationships.isProcessOf"
    resp1 = requests.get(processUrl, verify=False,  headers={'Authorization': "Api-Token " + Token}).json()

how can I do this in python panda?

user1471980
  • 10,383
  • 47
  • 132
  • 225

0 Answers0