cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Neo4j-admin import with some missing values

In a CSV file I'm loading into Neo4j, a float type column has numbers in some rows, and "NA" in some other rows. This of course results in an error when importing: "Not a number".

I would still like to import this, but with the float stored as a NaN, or omit the property entirely. How can I do this?

1 REPLY 1

I'd preprocess the csv files e.g. using awk to replace NA with an empty value. https://stackoverflow.com/questions/41537084/find-part-of-a-string-in-csv-and-replace-whole-cell-wit... contains some hints for this.