Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CsvProvider a way to not pass all other columns to transform a row #1431

Open
zetashift opened this issue Mar 11, 2022 · 0 comments
Open

CsvProvider a way to not pass all other columns to transform a row #1431

zetashift opened this issue Mar 11, 2022 · 0 comments

Comments

@zetashift
Copy link

So one can transform a row using Map: http://fsprojects.github.io/FSharp.Data/library/CsvProvider.html#Transforming-CSV-files

But using that method you'd also have to explicitly pass long all other row values, in the correct order.
Could a helper method be provided that returns an updated row value given the column name(s) and value(s), without having to explicitly pass along all row values?

One can currently deal with this by making a record type that models your data and then defining a function that converts a myCsv.Row -> MyRecord, but I think this would make Map a lot more ergonomic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant