# \#nimblecsv

**URL:** https://forum.elixirforum.com/tag/nimblecsv/498.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Nimble\_csv dump with each column quoted](https://forum.elixirforum.com/t/nimble-csv-dump-with-each-column-quoted/15231)

<div class="topic-metadata">

**Author:** [@zwippie](https://forum.elixirforum.com/u/zwippie)\
**Replies:** 5\
**Last updated:** [December 2, 2024, 5:42am UTC](https://forum.elixirforum.com/t/nimble-csv-dump-with-each-column-quoted/15231 "2024-12-02T05:42:35Z")

</div>

I want to dump some data to a CSV file where each column value is separated with a semicolon and wrapped inside double quotes. The semicolon is no problem, but the double quotes are. This does not work, no double quotes…

---

## [Issue with streaming into a csv](https://forum.elixirforum.com/t/issue-with-streaming-into-a-csv/65263)

<div class="topic-metadata">

**Author:** [@aura999](https://forum.elixirforum.com/u/aura999)\
**Replies:** 4\
**Last updated:** [July 31, 2024, 11:10am UTC](https://forum.elixirforum.com/t/issue-with-streaming-into-a-csv/65263 "2024-07-31T11:10:52Z")

</div>

I am trying to stream into a csv file using nimble\_csv(1.2.0) but running into issues. This is the code I am using to create a csv file from the stream. defmodule Utils alias NimbleCSV.RFC4180, as: CSV def write\_t…

---

## [Cannot figure out NimbleCSV parser](https://forum.elixirforum.com/t/cannot-figure-out-nimblecsv-parser/60698)

<div class="topic-metadata">

**Author:** [@hassamullah](https://forum.elixirforum.com/u/hassamullah)\
**Replies:** 2\
**Last updated:** [January 1, 2024, 7:04am UTC](https://forum.elixirforum.com/t/cannot-figure-out-nimblecsv-parser/60698 "2024-01-01T07:04:06Z")

</div>

In the first code snippet in the NimbleCSV Docs NimbleCSV.define(MyParser, separator: “\\t”, escape: “"”) I don’t know where the MyParser variable comes form, kindly guide me FYI, I’m new to elixir and still figuring…

---

## [NimbleCSV error trying to parse a large CSV partitioned in many files](https://forum.elixirforum.com/t/nimblecsv-error-trying-to-parse-a-large-csv-partitioned-in-many-files/55564)

<div class="topic-metadata">

**Author:** [@gastonrey](https://forum.elixirforum.com/u/gastonrey)\
**Replies:** 6\
**Last updated:** [April 28, 2023, 11:52am UTC](https://forum.elixirforum.com/t/nimblecsv-error-trying-to-parse-a-large-csv-partitioned-in-many-files/55564 "2023-04-28T11:52:59Z")

</div>

Hi there! I have large CSV file (2GB) so I decided to partitioned it in many files and then I’m trying to use Streams, Flow and NimbleCSV in order to parse and filter it but I’m getting an error that I can’t figure out w…

---

## [NimbleCSV dropping test coverage in Coveralls](https://forum.elixirforum.com/t/nimblecsv-dropping-test-coverage-in-coveralls/51890)

<div class="topic-metadata">

**Author:** [@Samuel-88](https://forum.elixirforum.com/u/Samuel-88)\
**Replies:** 4\
**Last updated:** [November 21, 2022, 12:54pm UTC](https://forum.elixirforum.com/t/nimblecsv-dropping-test-coverage-in-coveralls/51890 "2022-11-21T12:54:12Z")

</div>

Hello all, I hope everyone is doing well. I added version 1.2 of NimbleCSV to my dependencies, and now when I run mix coveralls it’s computing nimble\_csv as my own code and code coverage is down 16% :frowning: Does an…

---

## [Converting variable number of CSV headers into map](https://forum.elixirforum.com/t/converting-variable-number-of-csv-headers-into-map/36854)

<div class="topic-metadata">

**Author:** [@onkara](https://forum.elixirforum.com/u/onkara)\
**Replies:** 7\
**Last updated:** [February 11, 2022, 9:04pm UTC](https://forum.elixirforum.com/t/converting-variable-number-of-csv-headers-into-map/36854 "2022-02-11T21:04:51Z")

</div>

This post builds on the requirements mentioned in a similar post. I am using NimbleCSV and I am a Elixir n00b My Use case: Customer uploads CSV with 2 set of headers fixed and known headers, this one is easy as shown…

---

## [Excel Sheet(xslx) Import to Postgres DB in Elixir Phoenix](https://forum.elixirforum.com/t/excel-sheet-xslx-import-to-postgres-db-in-elixir-phoenix/31276)

<div class="topic-metadata">

**Author:** [@david234](https://forum.elixirforum.com/u/david234)\
**Replies:** 13\
**Last updated:** [December 27, 2020, 4:15pm UTC](https://forum.elixirforum.com/t/excel-sheet-xslx-import-to-postgres-db-in-elixir-phoenix/31276 "2020-12-27T16:15:18Z")

</div>

I am working on one project where I have to import data from an Excel sheet to Postgres DB. In my Previous Project, I have done the CSV File import using nimble\_csv | Hex. It works like a charm. In this Project, I am de…

---

## [Nimble csv parse error](https://forum.elixirforum.com/t/nimble-csv-parse-error/31860)

<div class="topic-metadata">

**Author:** [@vishal-h](https://forum.elixirforum.com/u/vishal-h)\
**Replies:** 2\
**Last updated:** [May 27, 2020, 5:14pm UTC](https://forum.elixirforum.com/t/nimble-csv-parse-error/31860 "2020-05-27T17:14:55Z")

</div>

Here is a simple csv csv = ~s(name, name@email.com, prop1, 40, prop2, “A, B”, “p:q, x:y”) and parser is defined as NimbleCSV.define(MyParser, separator: “,”, escape: “\\”") Now running the praser… MyParser.parse\_strin…

---

## [How to handle error inside Enum.each](https://forum.elixirforum.com/t/how-to-handle-error-inside-enum-each/30458)

<div class="topic-metadata">

**Author:** [@sahilpaudel](https://forum.elixirforum.com/u/sahilpaudel)\
**Replies:** 3\
**Last updated:** [April 10, 2020, 2:55pm UTC](https://forum.elixirforum.com/t/how-to-handle-error-inside-enum-each/30458 "2020-04-10T14:55:07Z")

</div>

gist I am trying to read a CSV file that has single column URL with multiple corresponding URLs for the same. Library: nimble\_csv I have attached gist file url of the code. I am able to read the urls from the file. T…

---

## [How to parse CSV into typed terms?](https://forum.elixirforum.com/t/how-to-parse-csv-into-typed-terms/22553)

<div class="topic-metadata">

**Author:** [@marcin](https://forum.elixirforum.com/u/marcin)\
**Replies:** 5\
**Last updated:** [May 21, 2019, 1:04am UTC](https://forum.elixirforum.com/t/how-to-parse-csv-into-typed-terms/22553 "2019-05-21T01:04:05Z")

</div>

Hi! I’d like to parse a CSV rows into typed elements, without knowing what is the schema (column order) of the CSV. In ruby the CSV library will parse strings into types. In Elixir, both csv and nimble\_csv libraries pr…

---

## [Help defining NimbleCSV](https://forum.elixirforum.com/t/help-defining-nimblecsv/18141)

<div class="topic-metadata">

**Author:** [@wfgilman](https://forum.elixirforum.com/u/wfgilman)\
**Replies:** 2\
**Last updated:** [November 22, 2018, 11:13pm UTC](https://forum.elixirforum.com/t/help-defining-nimblecsv/18141 "2018-11-22T23:13:43Z")

</div>

I can’t figure out the right definition to parse this string using NimbleCSV.define/2. Everything I try results in an empty list. Can anyone help? “agency\_id\\tagency\_name\\tagency\_url\\tagency\_timezone\\tagency\_lang\\rBART\\…

---

## [NimbleCSV - a small and fast CSV parsing and dumping library for Elixir](https://forum.elixirforum.com/t/nimblecsv-a-small-and-fast-csv-parsing-and-dumping-library-for-elixir/1131)

<div class="topic-metadata">

**Author:** [@josevalim](https://forum.elixirforum.com/u/josevalim)\
**Replies:** 13\
**Last updated:** [September 11, 2017, 2:10pm UTC](https://forum.elixirforum.com/t/nimblecsv-a-small-and-fast-csv-parsing-and-dumping-library-for-elixir/1131 "2017-09-11T14:10:09Z")

</div>

Hello everyone, We have just released NimbleCSV which is a small and fast CSV parsing library for Elixir. It allows developers to define their own parsers so we can rely on binary patterns for efficiency reasons. It als…
