liste = {'kulupList':kulupList,'MailList':MailList,'FacebookList':FacebookList,'TwitterList':TwitterList,'InstagramList':InstagramList,'DanismanList':DanismanList,'BaskanList':BaskanList,'UyeList':UyeList,'EtkinlikList':EtkinlikList}
df = pd.DataFrame(data = liste) #df.to_csv("DATAS.csv", index = False, encoding='utf-8-sig')
df.loc[2].to_csv("DATAS.csv", index=False, encoding='utf-8-sig') #I want to chose second row of CSV file which I created. #I created my CSV file(DATAS) but when I open it, it came empty. I want to put my data which I scraped, in selected rows.(for example: row 2)
Aucun commentaire:
Enregistrer un commentaire