-
Notifications
You must be signed in to change notification settings - Fork 138
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
Passing na_values and quoting doesn't work. #602
Comments
That doesn't see like the same error. It looks live you have a numeric value for a boolean field:
Also, what version of odo is this? |
Using 0.5.0 |
Can you try this on master, I remember dealing with something like this in the past. There hasn't been an odo release in a comically long time so there are a lot of unreleased bug fixes. |
Tried on master and ran into a different error. Seems to be this #585 I didn't see anyone with a fix for it.
|
Realized this won't work with Version 0.5.0 because it looks like it only uses psycopg2's copy_from to convert the csv to sql and never actually makes a dataframe. It does accept a null_value so I was able to set that instead of pandas null_values, but no quoting option. |
I am trying to read from a tab delimited file and setting na_values and quoting aren't working. I used the same options with pandas and it creates the dataframe correctly.
I was getting one warning when I running it, I fixed that as shown in #546 to make sure it wan't related and no change.
If i run as is I get an error because of quotes in my data messing up the columns. I noticed in the error message some of the options specified don't seem to be set in parameters,
quoting
doesn't show up at all andna_values
shows up but isn't set to what I specified.I can sidestep that by setting
quotechar='|',
which doesn't exist in my data and stops the quotes from breaking it but obviously I would rather usequoting=QUOTE_NONE
so that it doesn't end up breaking if i end up with a|
. Butna_values
still doesn't work.The text was updated successfully, but these errors were encountered: