john-science / python_for_scientists

Python Open Courseware for Scientists and Engineers
GNU General Public License v3.0
68 stars 40 forks source link

Reading csv in lecture 04 - Advanced Strings #60

Closed XueMChen closed 5 years ago

XueMChen commented 5 years ago

In the Reading and Writing CSV Files section, python is not smart enough to convert '5e5' to integer. Float() instead of int() would work, or have 50000, 100000, 4000000 written in the csv file as the last column of the last 3 rows instead of their scientific notation?

Happy Halloween~

john-science commented 5 years ago

Well, not sure how that slipped past by everyone for so long. That's not even a Python 3 issue.

Thanks for the find!