fast-csv icon indicating copy to clipboard operation
fast-csv copied to clipboard

[FEATURE] multiple delimeters

Open willm opened this issue 1 year ago • 0 comments

Parsing or Formatting?

  • [ ] Formatting
  • [x] Parsing

Is your feature request related to a problem? Please describe. I need to parse a file that uses inconsistent delimiters (tab and space in my case)

Describe the solution you'd like I'd like to be able to specify a list of delimiters

parse({  delimiter: [' ', '\t'] })

Describe alternatives you've considered I tried using \s as a delimiter in the end I created my own stream to replace the tabs with spaces before piping to fastcsv. an alternative could be to specify a regex pattern as a delimiter like pandas for sep

Additional context I'm happy to try to implement this if you think this is a worthwhile feature

willm avatar Nov 08 '24 12:11 willm