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

load job config allow quoted newlines #180

Closed
jwBoral opened this issue May 20, 2018 · 3 comments
Closed

load job config allow quoted newlines #180

jwBoral opened this issue May 20, 2018 · 3 comments

Comments

@jwBoral
Copy link

jwBoral commented May 20, 2018

https://github.com/pydata/pandas-gbq/blob/master/pandas_gbq/load.py

needs to add the condition

job_config.allow_quoted_newlines = True

current work around is:
df = df.replace({'\n': ' ', '\r\n': ' ', '\r': ' '}, regex=True)

@max-sixty
Copy link
Contributor

PR welcome!

Is there a time you wouldn't accept quoted newlines in config? i.e. does this need to be a parameter?

@tswast
Copy link
Collaborator

tswast commented May 21, 2018

I think we could safely always turn this option on. I see the fact that we serialize to CSV as an implementation detail.

@tswast
Copy link
Collaborator

tswast commented Oct 26, 2018

Closed by #230

@tswast tswast closed this as completed Oct 26, 2018
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

3 participants