csv.mdx 688 B

12345678910111213141516171819202122232425262728
  1. ---
  2. title: '📊 CSV'
  3. ---
  4. You can load any csv file from your local file system or through a URL. Headers are included for each line, so if you have an `age` column, `18` will be added as `age: 18`.
  5. ## Usage
  6. ### Load from a local file
  7. ```python
  8. from embedchain import App
  9. app = App()
  10. app.add('/path/to/file.csv', data_type='csv')
  11. ```
  12. ### Load from URL
  13. ```python
  14. from embedchain import App
  15. app = App()
  16. app.add('https://people.sc.fsu.edu/~jburkardt/data/csv/airtravel.csv', data_type="csv")
  17. ```
  18. <Note>
  19. There is a size limit allowed for csv file beyond which it can throw error. This limit is set by the LLMs. Please consider chunking large csv files into smaller csv files.
  20. </Note>