# Load CSV with Column Headers as property and values

**URL:** https://community.neo4j.com/t/load-csv-with-column-headers-as-property-and-values/5286
**Category:** Cypher
**Created:** [February 22, 2019, 9:21pm UTC](https://community.neo4j.com/t/load-csv-with-column-headers-as-property-and-values/5286 "2019-02-22T21:21:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rcfro2](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/rcfro2/32/706_2.png) [@rcfro2](https://community.neo4j.com/u/rcfro2)
#### Post date: [February 22, 2019, 9:21pm UTC](https://community.neo4j.com/t/load-csv-with-column-headers-as-property-and-values/5286/1 "2019-02-22T21:21:59Z")

</div>

Is there a way to load a csv with the column headers as the properties of a certain node label and the corresponding values to each row without having to explicitly list it out:

So instead of below:

LOAD CSV WITH HEADERS FROM "some\_csv.csv" AS row  
CREATE (n:Example)  
SET n = row,  
n.unitPrice = toFloat(row.unitPrice),

Have something where it implicitly sets the Column headers to the respective row value ?

---

<div class="post-metadata">

### Author: ![michael.hunger](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/michael.hunger/32/27377_2.png) [@michael.hunger](https://community.neo4j.com/u/michael.hunger)
#### Post date: [February 25, 2019, 4:59pm UTC](https://community.neo4j.com/t/load-csv-with-column-headers-as-property-and-values/5286/2 "2019-02-25T16:59:09Z")

</div>

Not really sure what you're asking for.

In your example the `SET n = row` sets the properties to the values?

In [apoc.load.csv](https://neo4j-contrib.github.io/neo4j-apoc-procedures/#load-csv) you can provide converters for columns and then set the resulting map directly on a node without individual conversions if that helps.
