Customizing the separator in pandas read_csv
You can also use the parameter skipinitialspace=True
which skips the leading spaces after any delimiter.
Yes, you can use a simple regular expression like sep='\s+'
to denote one or more spaces.
You can also use the parameter skipinitialspace=True
which skips the leading spaces after any delimiter.
Yes, you can use a simple regular expression like sep='\s+'
to denote one or more spaces.