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

Support separate null_values per column in pyarrow.csv.ConvertOptions #34637

Open
paiforsyth opened this issue Mar 19, 2023 · 0 comments
Open

Comments

@paiforsyth
Copy link

Describe the enhancement requested

I have a csv dataset in which nulls are encoded differently in different columns. It looks like when reading csv data with pyarrow, the same list of null_values must be used for all columns (see ConvertOptions). This concerns me because a value used as a null code in one column ("9999" for example) may be a valid non-null value in another column. In pandas's read_csv, it is possible to pass a dictionary specifying different null codes for different columns. Could this functionality be added to pyarrow?

Component(s)

Other

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

No branches or pull requests

2 participants