# StringToWriteablesFunction

**URL:** <https://community.konduit.ai/t/stringtowriteablesfunction/1422>\
**Category:** DataVec\
**Created:** [June 3, 2021, 9:18pm UTC](https://community.konduit.ai/t/stringtowriteablesfunction/1422 "2021-06-03T21:18:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wcneill](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/wcneill/32/559_2.png) [@wcneill](https://community.konduit.ai/u/wcneill)\
**Post date:** [June 3, 2021, 9:18pm UTC](https://community.konduit.ai/t/stringtowriteablesfunction/1422/1 "2021-06-03T21:18:22Z")

</div>

Hello, I have implemented a basic clustering algorithm using ND4J and want to test it on the iris dataset. I found the following example covering this exact use case:

> <https://github.com/eclipse/deeplearning4j-examples/blob/master/data-pipeline-examples/src/main/java/org/deeplearning4j/datapipelineexamples/transform/basic/IrisCSVTransform.java>

However, one of the imports is not resolving, and on further inspection I cannot find any mention of this packag in the official docs:

`import org.datavec.spark.transform.misc.StringToWritablesFunction;`.

Are there any current examples of how to read, transform and store a CSV file in an INDArray? Or can someone instruct me on how to resolve this import?

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [June 5, 2021, 12:56am UTC](https://community.konduit.ai/t/stringtowriteablesfunction/1422/2 "2021-06-05T00:56:49Z")

</div>

@wcneill you don’t need spark. Just use datavec-local and the TransformProcess. See: [deeplearning4j-examples/README.md at master · eclipse/deeplearning4j-examples · GitHub](https://github.com/eclipse/deeplearning4j-examples/blob/master/data-pipeline-examples/README.md)
