The query is below. I pass in a Pandas DataFrame that is populated from a query to Oracle. If a numeric field in Oracle is null, the DataFrame contains nan. These get created a properties with a value of NaN in Neo4j. I tried changing the nan to None in the DataFrame. WIth that, the properties get created with 0.0 as the value.
What I would really like to do is only create the property if there is a value.
def createEntries(rows, batch_size=10000):
query = '''UNWIND $rows AS row
RETURN count(*) as total
return insert_data(query, rows, batch_size)