I'm working with data in .csv format and want to set all the empty cells to the value of an empty string.
The problem that I'm facing is that those files have been manipulated for several people in different environments, hence there are various different junk values on these cells, such as:
' '
'NaN'
'nan'
'\n'
' '
And so on.
I'm looking for a standard way to identify all of these types of "junk values."
if yourStringVar.strip():
?