write values into DataFrame

PHOTO EMBED

Sat Oct 29 2022 10:26:00 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 ##dataframe

for index, row in urls_df.head(2).iterrows():
    print(f"Fetchiing URL: {row['url']}")
    api_output = fetch_metadata(row['url'])
    
    urls_df.loc[index, 'title'] = api_output['title']
    urls_df.loc[index, 'description'] = api_output['site_name']
    
urls_df
content_copyCOPY

http://localhost:8888/notebooks/Warmup.ipynb