-
Notifications
You must be signed in to change notification settings - Fork 20
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
Dataframe columns with lists in them do not work #6
Comments
Ok, I'll explore how to make the null check not raise an exception regardless of the value type. But I have a question: when the array value was written to a cell in the google spreadsheet, what were you expecting it to look like? A comma-delimited string? A space-delimited string? A Python array literal? |
It looks like a python array literal, which works for me
…On Tue, Jul 25, 2017, 9:03 PM Robin Thomas ***@***.***> wrote:
Ok, I'll explore how to make the null check not raise an exception
regardless of the value type. But I have a question: when the array value
was written to a cell in the google spreadsheet, what were you expecting it
to look like? A comma-delimited string? A space-delimited string? A Python
array literal?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD-vCsqHe1htcFWHz6GRc2QTWr_mpOaRks5sRp6BgaJpZM4OjSJ5>
.
|
OK, my next question is: if you write a Python list literal to a Google spreadsheet cell, are you expecting to 1) read it back into a dataframe; and 2) if so, are you expecting it to be parsed back into a Python list object? I can accept 1) being "yes", as long as 2) is "no", because I have to defer to |
For me whatever behavior you think is best is fine by me. The list is not
actually read back, and it's only generated for visual representation right
before I put it on the Google sheet, I don't actually use lists in pandas
df columns often
…On Tue, Jul 25, 2017, 9:56 PM Robin Thomas ***@***.***> wrote:
OK, my next question is: if you write a Python list literal to a Google
spreadsheet cell, are you expecting to 1) read it back into a dataframe;
and 2) if so, are you expecting it to be parsed back into a Python list
object?
I can accept 1) being "yes", as long as 2) is "no", because I have to
defer to pandas.read_csv's behavior, and it's always going to read a cell
inputValue of [1,2,3] as the string "[1, 2, 3]".
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD-vCtlpCX5TdpbBDUIuz39BqrWCjlgzks5sRqrWgaJpZM4OjSJ5>
.
|
Yes, I actually never use them. While I contemplate over the next 12 hours how best to code a fix for this, your best workaround is to do a |
…ell values in a DataFrame. Deal with regression where float precision is mangled during round-trip testing, by using repr() on float values and str() on other values. Fixes #6.
@schwallie Would you like to checkout the branch referenced by the pull request ( |
Awesome, thanks. lgtm 💯 |
@schwallie Release 2.1.0 is now on PyPI. (Because of the change in the code of how floats are represented in cell values submitted to Google sheet API, I bumped the minor version to 2.1 rather than make a bugfix version of 2.0.2.) |
Got an error on what I think is a column with a list in it:
The text was updated successfully, but these errors were encountered: