Skip to content

How to apply specific conversion rule on a field #289

Answered by koperagen
hantsy asked this question in Q&A
Discussion options

You must be logged in to vote

As something that 100% should work, I suggest

DataFrame.readCSV(...).convert { "fieldName"<String>() }.with { LocalDate.parse(it, dateTimeFormatter) }.convertTo<MyData>()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hantsy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants