DataQuacker v0.1.1 DataQuacker.Adapters.CSV View Source

This is a CSV adapter which can parse CSV files from the local filesystem or fetched over http.

It is the default used if no adapter is specified.

Example source

  • Local file path: "path/to/csv/file.csv"
  • Remote file url: "https://remote_file.com/file/abc"

Link to this section Summary

Functions

Takes in a string with the path or url to the file, and a keyword list of options.

Link to this section Functions

Link to this function

parse_source(file_path_or_url, opts)

View Source

Takes in a string with the path or url to the file, and a keyword list of options.

Options

  • :separator - the ASCII value of the column separator in the CSV file; usually retrieved with the ?* notation where "*" is the character, for example: ?, for a comma, ?; for a semicolon, etc.
  • :local? - a boolean flag representing whether the file is present on the local file system or on a remote server