How should i remove \n

hey @sarthaktech23 ,
loop over all the elements of that list , and just use replace function of string to replace that \n with blank_space

I hope this helps.

table_rows=[] for rows in rows_data: current_row=[] rows_data=rows.findAll(‘td’,{}) for idx,data in enumerate(rows_data): current_row.append(data.text) table_rows.append(current_row)

table_rows=[]
for rows in rows_data:
current_row=[]
rows_data=rows.findAll(‘td’,{})
for idx,data in enumerate(rows_data):
current_row.append(data.text.replace(’\n’,’’))
table_rows.append(current_row)

I hope this works for your task.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.