Dealing with extra white spaces while reading CSV in Pandas

Why do we care about blank spaces? Build-in pandas functions, and custom handling. Creation of 1M test data and performance test.

Vaclav Dekanovsky
Towards Data Science
11 min readJul 12, 2020

--

Photo by Kelly Sikkema on Unsplash

My colleague says that .csv is not an essay so we don’t expect any blank spaces behind the commas (or any other separators). The same opinion had…

--

--

Data scientist who loves to explore everything and write about the topics from multiple points of view.