Search the Community
Showing results for tags 'writecsv'.
Found 1 result
Hi. I've just finished the 4 module. My csv file is totally empty. Actually, I can write just the table headers. It happens when I run: f = open('filename.csv', 'w', encoding='utf8', newline='') writer = csv.writer(f, delimiter=',') writer.writerow(['plantNamedocketNumber', 'licenseNumber', 'reactorType', 'location', 'OwnerOperator', 'NRCRegion']) and then: df = pd.read_csv('filename.csv') df Any suggestions?