Sep-27-2019, 10:44 AM
Depreciation warning is clear
instead of
Looking at the file name it's a census data, so I guess great number of rows/records. You print
Note that it doesn't make to open and close the file for every row. Also it's better to use
Once again - I would advise you to find more up to date/better book to follow
instead of
sheet=wb.get_sheet_by_name('Population by Census Tract')
use sheet=wb['Population by Census Tract']
Looking at the file name it's a census data, so I guess great number of rows/records. You print
writing results...
and Done
after writing each row, so I would expect some long output.Note that it doesn't make to open and close the file for every row. Also it's better to use
with
context manager when open the file and thus no need to close it.Once again - I would advise you to find more up to date/better book to follow
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs