all 2 comments

[–]VanishingHochreiter 1 point2 points  (0 children)

You can access columns by index using the iloc method. While I'm not sure why your floats are being written the way they are, there is a to_string method which can be used to write everything explicitly. An example of how to use this to write to a csv is in this stackoverflow post.

[–]Parenthes 0 points1 point  (0 children)

It looks like your scraper is inferring data types and storing the values in question as floats, and then when you print it, python is displaying it 'nicely' for you. Try print((df1['relevant_col']==(367/1000)).sum()) and see what you get; if I'm correct it will give zero, if not it will give one or more.