filename=‘android_version_history.csv’
column_titles=[]
with open(filename,‘w’,encoding=‘utf-8’) as f:
header_string=’,’.join(column_titles)
header_string += “\n”
f.write(header_string)
table_rows=[]
for row in table_rows:
row_string=" "
row_string=’,’.join(row)
row_string +=’\n’
f.write(row_string)
Csv file has created but it does not displaying anything
You are initializing column_titles=[] and table_rows=[] as empty lists, that is why it is not displaying anything