Is this the most efficient way to get the next row of data based on a matching value in the prior row? It seems terribly cumbersome but the Int64Index
type seems to not play well.
df_of_urls = {'ID': [100,101], 'URL': ['https://www.firsturl.com','https://www.secondurl.com']}
df_of_urls = pd.DataFrame.from_dict(df_of_urls)
prior_url = 'https://www.firsturl.com'
next_url = df_of_urls.iloc[df_of_urls[df_of_urls['URL']==prior_url ].index+1,1].values[0]