| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
@tswast Friendly ping. :) This PR is probably something than can be reviewed and closed quickly (read: before the repo split tomorrow). |
Sorry, something went wrong.
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
| bqstorage_client=bqstorage_client, | ||
| dtypes={ | ||
| "col_category": pandas.core.dtypes.dtypes.CategoricalDtype( | ||
| categories=["low", "medium", "high"], ordered=False, |
There was a problem hiding this comment.
[no action required] I suspect there will be users who don't necessarily know the categories ahead of time, though this could trivially be done with a group by / distinct query. If we had a support cookbook, I'd say we should add this info there.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #8044.
This PR adds tests for concatenating multiple-page results that contain categorical column data (both with or without pyarrow available).
It appears that the code already works, provided that a correct explicit categorical dtype is passed to to_dataframe() method.
If dtypes are not specified, a default pandas concatenating behavior results in categorical columns ending up with the dtype "object", but that's already explained in the dtypes parameter's docstring, meaning that the code behaves as advertised.
PR checklist