-
Notifications
You must be signed in to change notification settings - Fork 47
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
feat: add DataFrame.to_pandas_batches()
to download large DataFrame
objects
#136
Conversation
…n DataFrame construction
68f50ef
to
359a90c
Compare
359a90c
to
1a7b2d7
Compare
""" | ||
if self.index_columns: | ||
df.set_index(list(self.index_columns), inplace=True) | ||
df.index.names = self.index.names # type: ignore |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious what's the error here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bigframes/core/blocks.py:434: error: Incompatible types in assignment (expression has type "Sequence[Hashable]", variable has type "list[str]") [assignment]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though list[str] is a sequence of hashable objects, I think maybe type covariance can't kick in. I'll try with some casts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I had it opposite. pandas says "names" is list[str]
, but actually I don't think that's true.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Filed pandas-dev/pandas-stubs#804 and commented with an explanation.
…python-bigquery-dataframes into b280662868-to_pandas_batches
…e` objects (#136) Builds on https://togithub.com/googleapis/python-bigquery-dataframes/pull/132 Towards internal issue 280662868 🦕
Builds on #132
Towards internal issue 280662868
🦕