Skip to content
Beltr documentation home
beltr.ai

Sources and data

Connect CSV files

Add one CSV file or a folder of CSV exports as a read-only source and tell Beltr how the files are written.

A CSV source reads one file or the CSV files in a folder. Beltr finds their columns and times after you save.

  1. In Sources, choose Add source, then CSV files and Continue.
  2. Enter a Name. Under Read from, choose One file and then Choose CSV file…, or Folder and then Choose folder….
  3. For a folder, set the File name pattern (*.csv unless you change it; * and ? are the only wildcards) and, if you need it, Include subfolders (up to four levels).
  4. Set how the files are written: Column separator, Decimal separator, Text encoding, Header rows, Timestamp format, and whether Times without a time zone Are UTC or Are local time of a time zone. For local time, choose the Time zone of the source.
  5. If the files write a word for a missing value, such as NaN, list it under Missing-value words: one word per line, up to eight. Empty cells already mean missing.
  6. Choose Test connection. When the test has passed, choose Continue, check the connection and choose Save.

You should see

You should see the overview of the new source. Each group of files is a datasetDataset A table or file in a source that Beltr found when it looked at what the source holds, such as a history table or a CSV export. there.
  • Files with the same header count as one group. The test shows how many groups it found under What the test found, and discovery shows each group as one dataset.
  • Choices: the column separator is a comma, semicolon, tab or vertical bar; the decimal separator a dot or a comma; the encoding UTF-8 or Windows-1252. The timestamp format is iso, unix_s, unix_ms or a pattern of %Y %m %d %H %M %S %f %z.
  • A file that does not match its settings is not guessed at. The read fails and names the line, instead of storing values that look right. A word for a missing value is accepted only when it is listed under Missing-value words.
  • A file that changes while Beltr reads it fails that read, and none of its rows are used. Try again when the program writing it has finished.
  • Limits: at most 10,000 files match a pattern. A record of more than 1 MiB or 4,096 fields fails the read. There is no limit on a file’s size.
  • Where the files may be: a file or folder inside a Beltr workspace folder cannot be a source, and links are not followed.

A CSV source added this way has no tag list: Sync tags finds no tags in it. Its data is read through its datasets, which you open in Catalog › Datasets.