I'm working on a web scraper. I have a dataframe df, it has its titles ready and I want to create the rows for it, I have a for loop which adds the rows into the df. But for some reason it will only add the rows until the 36th, when I try to add any more rows it gives an indexing error. The list col_data is 86 values long.
col_data = col_data[1:]
for i in range(0,30):
row = col_data[i]
row_data = row.find_all('td')
row_data1 = [data.text.strip() for data in row_data]
df.loc[i] = row_data1
df
additionally I can print out all the rows and they all come out just fine, it only gets messed up when I try to add all of them in.