Why I am getting W292 error (warning) in python when print(rows) from a .csv? The last line is the one that throws the error (warning). The expected output is the .csv values from the file.
If I then add another line after print(rows) I receive this error "W293 blank line contains whitespace W391 blank line at end of file"
import csv
hfile_name = "Hospital_Readmissions_Reduction_Program.csv"
hfile = open(hfile_name, newline='')
hdata = csv.reader(hfile, delimiter=',', quotechar='"')
for rows in hdata:
print(rows)
I have found some additional threads on this error (warning), but not a definitive solution... PEP8: conflict between W292 and W391